File tree Expand file tree Collapse file tree 7 files changed +24
-11
lines changed Expand file tree Collapse file tree 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
385385dotnet_diagnostic.MA0148.severity = none
386386dotnet_diagnostic.MA0149.severity = none
387387dotnet_diagnostic.MA0154.severity = warning
388+ dotnet_diagnostic.MA0158.severity = none
Original file line number Diff line number Diff line change 11<Project >
22 <PropertyGroup >
3- <LangVersion >latest </LangVersion >
3+ <LangVersion >preview </LangVersion >
44
55 <Nullable >enable</Nullable >
66 <WarningsAsErrors >$(WarningsAsErrors);nullable;</WarningsAsErrors >
Original file line number Diff line number Diff line change 77 <PackageVersion Include =" CommunityToolkit.Diagnostics" Version =" 8.2.2" />
88 <PackageVersion Include =" coverlet.collector" Version =" 6.0.2" />
99 <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" />
1111 <PackageVersion Include =" GitHubActionsTestLogger" Version =" 2.4.1" />
1212 <PackageVersion Include =" Microsoft.CodeAnalysis.Analyzers" Version =" 3.3.4" />
1313 <PackageVersion Include =" Microsoft.CodeAnalysis.CSharp" Version =" 4.10.0" />
1818 <PackageVersion Include =" Scriban" Version =" 5.10.0" />
1919 <PackageVersion Include =" System.Linq.Async" Version =" 6.0.1" />
2020 <PackageVersion Include =" ThisAssembly.Resources" Version =" 1.4.3" />
21- <PackageVersion Include =" xunit" Version =" 2.8.1 " />
21+ <PackageVersion Include =" xunit" Version =" 2.9.0 " />
2222 </ItemGroup >
2323
2424 <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" />
2626 </ItemGroup >
2727
2828 <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" >
22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
55 <TargetFrameworks >net8.0</TargetFrameworks >
6- <NoWarn >$(NoWarn);CA1852;NU1701</NoWarn >
6+ <NoWarn >$(NoWarn);CA1852;NU1701;NU1902;NU1903 </NoWarn >
77 <IsPackable >false</IsPackable >
88 </PropertyGroup >
99
Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ ValueTask IAsyncDisposable.DisposeAsync()
9494 return default ;
9595 }
9696
97+ [ SuppressMessage (
98+ "Style" ,
99+ "IDE0100" ,
100+ Justification = "Expanded code is used for better error reporting on test failures"
101+ ) ]
97102 public IAsyncEnumerator < T > GetAsyncEnumerator ( CancellationToken cancellationToken = default )
98103 {
99104 AssertTestingSequence ( _enumerationCount == _disposedCount , SimultaneousEnumerations ) ;
Original file line number Diff line number Diff line change 1- namespace Test . Async ;
1+ namespace Test . Async ;
22
33public sealed class TimeoutTest
44{
@@ -95,9 +95,10 @@ private sealed class SequenceWithoutThrowIfCancellationRequested : IAsyncEnumera
9595 return AsyncEnumerable . Range ( 1 , 5 )
9696 . SelectAwait ( async x =>
9797 {
98- await Task . Delay ( TimeSpan . FromMilliseconds ( 1 ) , CancellationToken . None ) ;
98+ await Task . Delay ( TimeSpan . FromMilliseconds ( 10 ) , CancellationToken . None ) ;
9999 return x ;
100- } ) . GetAsyncEnumerator ( CancellationToken . None ) ;
100+ } )
101+ . GetAsyncEnumerator ( CancellationToken . None ) ;
101102 }
102103 }
103104
@@ -110,9 +111,10 @@ private sealed class SequenceWithThrowIfCancellationRequested : IAsyncEnumerable
110111 return AsyncEnumerable . Range ( 1 , 5 )
111112 . SelectAwait ( async x =>
112113 {
113- await Task . Delay ( TimeSpan . FromMilliseconds ( 1 ) , cancellationToken ) ;
114+ await Task . Delay ( TimeSpan . FromMilliseconds ( 10 ) , cancellationToken ) ;
114115 return x ;
115- } ) . GetAsyncEnumerator ( cancellationToken ) ;
116+ } )
117+ . GetAsyncEnumerator ( cancellationToken ) ;
116118 }
117119 }
118120}
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ void IDisposable.Dispose()
7474 AssertTestingSequence ( _disposedCount == _enumerationCount , ExpectedDisposal ) ;
7575 }
7676
77+ [ SuppressMessage (
78+ "Style" ,
79+ "IDE0100" ,
80+ Justification = "Expanded code is used for better error reporting on test failures"
81+ ) ]
7782 public IEnumerator < T > GetEnumerator ( )
7883 {
7984 AssertTestingSequence ( _enumerationCount == _disposedCount , SimultaneousEnumerations ) ;
You can’t perform that action at this time.
0 commit comments