Commit 4d7b91a 1 parent 807dd88 commit 4d7b91a Copy full SHA for 4d7b91a
File tree 7 files changed +24
-11
lines changed
7 files changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -385,3 +385,4 @@ dotnet_diagnostic.MA0147.severity = error
385
385
dotnet_diagnostic.MA0148.severity = none
386
386
dotnet_diagnostic.MA0149.severity = none
387
387
dotnet_diagnostic.MA0154.severity = warning
388
+ dotnet_diagnostic.MA0158.severity = none
Original file line number Diff line number Diff line change 1
1
<Project >
2
2
<PropertyGroup >
3
- <LangVersion >latest </LangVersion >
3
+ <LangVersion >preview </LangVersion >
4
4
5
5
<Nullable >enable</Nullable >
6
6
<WarningsAsErrors >$(WarningsAsErrors);nullable;</WarningsAsErrors >
Original file line number Diff line number Diff line change 7
7
<PackageVersion Include =" CommunityToolkit.Diagnostics" Version =" 8.2.2" />
8
8
<PackageVersion Include =" coverlet.collector" Version =" 6.0.2" />
9
9
<PackageVersion Include =" coverlet.msbuild" Version =" 6.0.2" />
10
- <PackageVersion Include =" DocFx.App" Version =" 2.76 .0" />
10
+ <PackageVersion Include =" DocFx.App" Version =" 2.77 .0" />
11
11
<PackageVersion Include =" GitHubActionsTestLogger" Version =" 2.4.1" />
12
12
<PackageVersion Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.3.4" />
13
13
<PackageVersion Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.10.0" />
18
18
<PackageVersion Include =" Scriban" Version =" 5.10.0" />
19
19
<PackageVersion Include =" System.Linq.Async" Version =" 6.0.1" />
20
20
<PackageVersion Include =" ThisAssembly.Resources" Version =" 1.4.3" />
21
- <PackageVersion Include =" xunit" Version =" 2.8.1 " />
21
+ <PackageVersion Include =" xunit" Version =" 2.9.0 " />
22
22
</ItemGroup >
23
23
24
24
<ItemGroup Condition =" '$(TargetFramework)' != 'netcoreapp3.1' " >
25
- <PackageVersion Include =" xunit.runner.visualstudio" Version =" 2.8.0 " PrivateAssets =" All" />
25
+ <PackageVersion Include =" xunit.runner.visualstudio" Version =" 2.8.2 " PrivateAssets =" All" />
26
26
</ItemGroup >
27
27
28
28
<ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.1' " >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
5
<TargetFrameworks >net8.0</TargetFrameworks >
6
- <NoWarn >$(NoWarn);CA1852;NU1701</NoWarn >
6
+ <NoWarn >$(NoWarn);CA1852;NU1701;NU1902;NU1903 </NoWarn >
7
7
<IsPackable >false</IsPackable >
8
8
</PropertyGroup >
9
9
Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ ValueTask IAsyncDisposable.DisposeAsync()
94
94
return default ;
95
95
}
96
96
97
+ [ SuppressMessage (
98
+ "Style" ,
99
+ "IDE0100" ,
100
+ Justification = "Expanded code is used for better error reporting on test failures"
101
+ ) ]
97
102
public IAsyncEnumerator < T > GetAsyncEnumerator ( CancellationToken cancellationToken = default )
98
103
{
99
104
AssertTestingSequence ( _enumerationCount == _disposedCount , SimultaneousEnumerations ) ;
Original file line number Diff line number Diff line change 1
- namespace Test . Async ;
1
+ namespace Test . Async ;
2
2
3
3
public sealed class TimeoutTest
4
4
{
@@ -95,9 +95,10 @@ private sealed class SequenceWithoutThrowIfCancellationRequested : IAsyncEnumera
95
95
return AsyncEnumerable . Range ( 1 , 5 )
96
96
. SelectAwait ( async x =>
97
97
{
98
- await Task . Delay ( TimeSpan . FromMilliseconds ( 1 ) , CancellationToken . None ) ;
98
+ await Task . Delay ( TimeSpan . FromMilliseconds ( 10 ) , CancellationToken . None ) ;
99
99
return x ;
100
- } ) . GetAsyncEnumerator ( CancellationToken . None ) ;
100
+ } )
101
+ . GetAsyncEnumerator ( CancellationToken . None ) ;
101
102
}
102
103
}
103
104
@@ -110,9 +111,10 @@ private sealed class SequenceWithThrowIfCancellationRequested : IAsyncEnumerable
110
111
return AsyncEnumerable . Range ( 1 , 5 )
111
112
. SelectAwait ( async x =>
112
113
{
113
- await Task . Delay ( TimeSpan . FromMilliseconds ( 1 ) , cancellationToken ) ;
114
+ await Task . Delay ( TimeSpan . FromMilliseconds ( 10 ) , cancellationToken ) ;
114
115
return x ;
115
- } ) . GetAsyncEnumerator ( cancellationToken ) ;
116
+ } )
117
+ . GetAsyncEnumerator ( cancellationToken ) ;
116
118
}
117
119
}
118
120
}
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ void IDisposable.Dispose()
74
74
AssertTestingSequence ( _disposedCount == _enumerationCount , ExpectedDisposal ) ;
75
75
}
76
76
77
+ [ SuppressMessage (
78
+ "Style" ,
79
+ "IDE0100" ,
80
+ Justification = "Expanded code is used for better error reporting on test failures"
81
+ ) ]
77
82
public IEnumerator < T > GetEnumerator ( )
78
83
{
79
84
AssertTestingSequence ( _enumerationCount == _disposedCount , SimultaneousEnumerations ) ;
You can’t perform that action at this time.
0 commit comments