-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/EFCore.OData.FunctionalTests/Properties/TestAssemblyConditions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Threading.Tasks; | ||
using Microsoft.EntityFrameworkCore.TestUtilities; | ||
using Microsoft.EntityFrameworkCore.TestUtilities.Xunit; | ||
|
||
// Skip the entire assembly if not on Windows and no external SQL Server is configured | ||
[assembly: SqlServerConfiguredCondition] | ||
|
||
[assembly: LoggingIsBrokenCondition] | ||
|
||
[AttributeUsage(AttributeTargets.Assembly)] | ||
public sealed class LoggingIsBrokenConditionAttribute : Attribute, ITestCondition | ||
{ | ||
public ValueTask<bool> IsMetAsync() | ||
=> ValueTask.FromResult(true); | ||
|
||
public string SkipReason | ||
=> "Missing method exceptions in Logging"; | ||
} |