Skip to content

Commit bbd7794

Browse files
authored
Merge pull request #108 from egil/dev
Upgraded testing library to beta 6
2 parents c92627a + 5d83041 commit bbd7794

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
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">

src/BlazorWebFormsComponents.Test/TreeView/StaticNodes/Collapsed.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
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

src/BlazorWebFormsComponents.Test/TreeView/StaticNodes/Image.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
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

src/BlazorWebFormsComponents.Test/TreeView/StaticNodes/ImageWithAnchor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
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

src/BlazorWebFormsComponents.Test/_Imports.razor

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
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

0 commit comments

Comments
 (0)