File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Raygun.Tests.Blazor.Server Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2020 <ItemGroup >
2121 <PackageReference Include =" Breakdance.Blazor" Version =" 8.0.2" />
2222 <PackageReference Include =" bunit" Version =" 2.5.3" />
23- <PackageReference Include =" bunit.web" Version =" 1.*" />
2423 <PackageReference Include =" skwas.MockHttp" Version =" 4.5.0" />
2524 </ItemGroup >
2625
Original file line number Diff line number Diff line change 11using Bunit ;
22using CloudNimble . Breakdance . Blazor ;
3+ using Microsoft . AspNetCore . Components . Web ;
34using Microsoft . VisualStudio . TestTools . UnitTesting ;
45using System . Net ;
56using System . Text . Json ;
@@ -94,12 +95,12 @@ public HttpClient CreateClient(string name)
9495 public async Task RaygunExceptionCatcher_WhenExceptionIsThrown_ExceptionIsCaught ( )
9596 {
9697 // Arrange
97- var cut = BUnitTestContext . RenderComponent < App > ( ) ;
98+ var cut = BUnitTestContext . Render < App > ( ) ;
9899
99100 Console . WriteLine ( "Initialized" ) ;
100101
101102 // Act
102- cut . Find ( "button" ) . Click ( ) ;
103+ cut . Find ( "button" ) . Click ( new MouseEventArgs ( ) ) ;
103104
104105 // Obtain requested data
105106 var request = _mockHttp . InvokedRequests [ 0 ] . Request ;
Original file line number Diff line number Diff line change 88 <ItemGroup >
99 <PackageReference Include =" Breakdance.Blazor" Version =" 8.0.2" />
1010 <PackageReference Include =" bunit" Version =" 2.5.3" />
11- <PackageReference Include =" bunit.web" Version =" 1.*" />
1211 <PackageReference Include =" skwas.MockHttp" Version =" 4.5.0" />
1312 <PackageReference Include =" Microsoft.AspNetCore.Components" Version =" 10.0.2" />
1413 <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 10.0.2" />
You can’t perform that action at this time.
0 commit comments