File tree Expand file tree Collapse file tree 6 files changed +29
-16
lines changed
Expand file tree Collapse file tree 6 files changed +29
-16
lines changed Original file line number Diff line number Diff line change 2424 <PackageReference Include =" Xunit.Combinatorial" Version =" 1.6.24" />
2525 </ItemGroup >
2626
27- <ItemGroup >
28- <!-- DO NOT UPGRADE TO versions > 2.4.2 as they do not support .net5 or older -->
29- <PackageReference Include =" xunit" Version =" 2.4.2" />
30- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.2" >
31- <PrivateAssets >all</PrivateAssets >
32- <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
33- <NoWarn >NU1701</NoWarn >
34- </PackageReference >
35- </ItemGroup >
36-
3727 <ItemGroup Label =" Implicit usings" Condition =" $(MSBuildProjectName) != 'bunit.testassets' AND $(MSBuildProjectName) != 'AngleSharpWrappers.Tests'" >
3828 <Using Include =" AutoFixture" />
3929 <Using Include =" AutoFixture.Xunit2" />
Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ public async Task Test202()
410410 }
411411
412412 [ Fact ( DisplayName = "UnhandledException has a reference to latest unhandled exception thrown by a component during OnAfterRenderAsync" ) ]
413- public void Test203 ( )
413+ public async Task Test203 ( )
414414 {
415415 // Arrange
416416 var planned = JSInterop . SetupVoid ( "foo" ) ;
@@ -421,7 +421,7 @@ public void Test203()
421421
422422 // Assert
423423 planned . VerifyInvoke ( "foo" ) ;
424- Renderer . UnhandledException . Result . ShouldBeOfType < InvalidOperationException > ( ) ;
424+ ( await Renderer . UnhandledException ) . ShouldBeOfType < InvalidOperationException > ( ) ;
425425 }
426426
427427 [ Fact ( DisplayName = "Multiple calls to StateHasChanged from OnParametersSet with SetParametersAndRender" ) ]
Original file line number Diff line number Diff line change 1212 <ProjectReference Include =" ..\bunit.testassets\bunit.testassets.csproj" />
1313 </ItemGroup >
1414
15+ <ItemGroup >
16+ <PackageReference Include =" xunit" Version =" 2.5.2" />
17+ <!-- DO NOT UPGRADE TO versions > 2.4.5 as they do not support .net5 or older -->
18+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
19+ <PrivateAssets >all</PrivateAssets >
20+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
21+ <NoWarn >NU1701</NoWarn >
22+ </PackageReference >
23+ </ItemGroup >
24+
1525</Project >
Original file line number Diff line number Diff line change 1515 <ItemGroup >
1616 <PackageReference Include =" Serilog" Version =" 3.0.1" />
1717 <PackageReference Include =" Serilog.Expressions" Version =" 3.4.1" />
18+ <PackageReference Include =" xunit.extensibility.execution" Version =" 2.5.2" />
19+ <PackageReference Include =" xunit.abstractions" Version =" 2.0.3" />
20+ <PackageReference Include =" xunit.assert" Version =" 2.5.2" />
1821 </ItemGroup >
1922
2023 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.1'" >
Original file line number Diff line number Diff line change 1- namespace Bunit . TestDoubles ;
1+ namespace Bunit . TestDoubles ;
22
33public class FakeSignOutSessionStateManagerTest : TestContext
44{
@@ -16,12 +16,12 @@ public void ShouldSignOut(string randomUserName)
1616 }
1717
1818 [ Fact ]
19- public void ShouldReturnSignOutStateOnValidateSignOutState ( )
19+ public async Task ShouldReturnSignOutStateOnValidateSignOutState ( )
2020 {
2121 var cut = new FakeSignOutSessionStateManager ( Substitute . For < IJSRuntime > ( ) ) ;
22- cut . SetSignOutState ( ) ;
22+ await cut . SetSignOutState ( ) ;
2323
24- var wasValidate = cut . ValidateSignOutState ( ) . Result ;
24+ var wasValidate = await cut . ValidateSignOutState ( ) ;
2525
2626 wasValidate . ShouldBeTrue ( ) ;
2727 cut . IsSignedOut . ShouldBeFalse ( ) ;
Original file line number Diff line number Diff line change 1212 <ProjectReference Include =" ..\bunit.testassets\bunit.testassets.csproj" />
1313 </ItemGroup >
1414
15+ <ItemGroup >
16+ <PackageReference Include =" xunit" Version =" 2.5.2" />
17+ <!-- DO NOT UPGRADE TO versions > 2.4.5 as they do not support .net5 or older -->
18+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5" >
19+ <PrivateAssets >all</PrivateAssets >
20+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
21+ <NoWarn >NU1701</NoWarn >
22+ </PackageReference >
23+ </ItemGroup >
24+
1525</Project >
You can’t perform that action at this time.
0 commit comments