File tree Expand file tree Collapse file tree 5 files changed +5
-7
lines changed
src/BlazorWebFormsComponents.Test Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 77
88
99 <ItemGroup >
10+ <PackageReference Include =" bunit" Version =" 1.0.0-beta-6" />
1011 <PackageReference Include =" Microsoft.AspNetCore.Components" Version =" 3.1.1" />
1112 <PackageReference Include =" Microsoft.AspNetCore.Components.Web" Version =" 3.1.1" />
1213 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.4.0" />
1314 <PackageReference Include =" Moq" Version =" 4.13.1" />
14- <PackageReference Include =" Razor.Components.Testing.Library" Version =" 1.0.0-beta-5.1" />
1515 <PackageReference Include =" Shouldly" Version =" 3.0.2" />
1616 <PackageReference Include =" xunit.core" Version =" 2.4.1" />
1717 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" >
Original file line number Diff line number Diff line change 5858 cut .Find (" img" ).MarkupMatches (GetFragment (" AfterImage" ));
5959 cut .Find (" a" ).Click ();
6060 cut .Find (" img" ).MarkupMatches (GetFragment (" BeforeImage" ));
61- cut .FindAll (" table" ).Length .ShouldBe (1 );
61+ cut .FindAll (" table" ).Count .ShouldBe (1 );
6262
6363 }
6464
Original file line number Diff line number Diff line change 4141
4242 img .ParentElement .LocalName .ShouldBe (" td" );
4343
44- cut .FindAll (" td" ).Length .ShouldBe (2 );
44+ cut .FindAll (" td" ).Count .ShouldBe (2 );
4545
4646 }
4747
Original file line number Diff line number Diff line change 3939 img .GetAttribute (" title" ).ShouldBe (ImageToolTip );
4040 img .GetAttribute (" alt" ).ShouldBe (ImageToolTip );
4141
42- cut .FindAll (" td" ).Length .ShouldBe (2 );
42+ cut .FindAll (" td" ).Count .ShouldBe (2 );
4343 img .ParentElement .LocalName .ShouldBe (" a" );
4444
4545
Original file line number Diff line number Diff line change 11@using Microsoft .AspNetCore .Components .Web
22@using Microsoft .AspNetCore .Components .Forms
33@using Microsoft .Extensions .DependencyInjection
4- @using Egil .RazorComponents .Testing
5- @using Egil .RazorComponents .Testing .Asserting
6- @using Egil .RazorComponents .Testing .EventDispatchExtensions
4+ @using Bunit
75@using Shouldly
86@using SharedSampleObjects .Models
97@using BlazorWebFormsComponents
You can’t perform that action at this time.
0 commit comments