File tree Expand file tree Collapse file tree 7 files changed +1045
-473
lines changed
Microsoft.Extensions.Configuration.Binder/tests
Microsoft.Extensions.DependencyInjection/tests/DI.Tests
System.Security.Cryptography.Csp/tests
System.Text.Json/tests/Serialization Expand file tree Collapse file tree 7 files changed +1045
-473
lines changed Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 225
225
<CheckForOverflowUnderflow >false</CheckForOverflowUnderflow >
226
226
<GenFacadesIgnoreBuildAndRevisionMismatch >true</GenFacadesIgnoreBuildAndRevisionMismatch >
227
227
<!-- Disable analyzers for tests and unsupported projects -->
228
- <RunAnalyzers Condition =" '$(IsSourceProject)' != 'true' or '$(MSBuildProjectExtension)' == '.ilproj'" >false</RunAnalyzers >
228
+ <RunAnalyzers Condition =" '$(IsTestProject)' != 'true' and '$(IsSourceProject)' != 'true'" >false</RunAnalyzers >
229
+ <CodeAnalysisRuleset Condition =" '$(IsTestProject)' == 'true'" >$(RepositoryEngineeringDir)CodeAnalysis.test.ruleset</CodeAnalysisRuleset >
229
230
</PropertyGroup >
230
231
231
232
<!-- Set up common paths -->
Original file line number Diff line number Diff line change @@ -845,7 +845,7 @@ public void CanBindByteArrayWhenValueIsNull()
845
845
var config = configurationBuilder . Build ( ) ;
846
846
847
847
var options = config . Get < ByteArrayOptions > ( ) ;
848
- Assert . Equal ( null , options . MyByteArray ) ;
848
+ Assert . Null ( options . MyByteArray ) ;
849
849
}
850
850
851
851
[ Fact ]
Original file line number Diff line number Diff line change @@ -265,7 +265,8 @@ public void ScopeDispose_PreventsServiceResolution()
265
265
Assert . NotNull ( provider . CreateScope ( ) ) ;
266
266
}
267
267
268
- [ Theory ( Skip = "https://github.com/dotnet/runtime/issues/42160 - We don't support value task services currently" ) ]
268
+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/42160" ) ] // We don't support value task services currently
269
+ [ Theory ]
269
270
[ InlineData ( ServiceLifetime . Transient ) ]
270
271
[ InlineData ( ServiceLifetime . Scoped ) ]
271
272
[ InlineData ( ServiceLifetime . Singleton ) ]
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ namespace System.Security.Cryptography.Csp.Tests
7
7
{
8
8
public static class CspParametersTests
9
9
{
10
+ public static bool ManualTestsEnabled => ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "MANUAL_TESTS" ) ) ;
11
+
10
12
const int PROV_RSA_FULL = 1 ;
11
13
const int PROV_RSA_AES = 24 ;
12
14
@@ -45,7 +47,7 @@ public static void KeyPassword_SetGet()
45
47
}
46
48
}
47
49
48
- [ Theory ( Skip = "Manual test - requires Smart Card - read instructions" ) ]
50
+ [ ConditionalTheory ( nameof ( ManualTestsEnabled ) ) ] // requires Smart Card - read instructions
49
51
[ InlineData ( true ) ]
50
52
[ InlineData ( false ) ]
51
53
public static void KeyPassword_SmartCard_Manual_Test ( bool correctPassword )
Original file line number Diff line number Diff line change @@ -817,9 +817,11 @@ static void PerformFloatingPointSerialization(string testString)
817
817
[ InlineData ( "NaNa" ) ]
818
818
[ InlineData ( "Infinitya" ) ]
819
819
[ InlineData ( "-Infinitya" ) ]
820
+ #pragma warning disable xUnit1025 // Theory method 'FloatingPointConstants_Fail' on test class 'NumberHandlingTests' has InlineData duplicate(s)
820
821
[ InlineData ( "\u006E aN" ) ] // "naN"
821
822
[ InlineData ( "\u0020 Inf\u0069 ni\u0074 y" ) ] // " Infinity"
822
823
[ InlineData ( "\u002B Inf\u0069 nity" ) ] // "+Infinity"
824
+ #pragma warning restore xUnit1025
823
825
public static void FloatingPointConstants_Fail ( string testString )
824
826
{
825
827
string testStringAsJson = $@ """{ testString } """;
You can’t perform that action at this time.
0 commit comments