Skip to content

Commit dca242f

Browse files
Housekeeping Update fluent assertions (#607)
1 parent 5caafb9 commit dca242f

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

src/DynamicData.Tests/AutoRefreshFilter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public void Test()
2626
var obsListDerived = obsList.Connect().AutoRefresh(x => x.Name).Filter(x => x.Name.Contains("I")).AsObservableList();
2727

2828
obsListDerived.Count.Should().Be(3);
29-
obsListDerived.Items.Should().BeEquivalentTo(i1, i2, i3);
29+
obsListDerived.Items.Should().BeEquivalentTo(new []{ i1, i2, i3});
3030

3131
i1.Name = "X2";
3232
obsListDerived.Count.Should().Be(2);
33-
obsListDerived.Items.Should().BeEquivalentTo(i2, i3);
33+
obsListDerived.Items.Should().BeEquivalentTo(new[] { i2, i3});
3434

3535
a0.Name = "I0";
3636
obsListDerived.Count.Should().Be(3);
37-
obsListDerived.Items.Should().BeEquivalentTo(a0, i2, i3);
37+
obsListDerived.Items.Should().BeEquivalentTo(new[] { a0, i2, i3});
3838
}
3939

4040
[Fact]

src/DynamicData.Tests/DynamicData.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="xunit" Version="2.4.1" />
2020
<PackageReference Include="xunit.runner.console" Version="2.4.1" />
2121
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
22-
<PackageReference Include="FluentAssertions" Version="5.10.3" />
22+
<PackageReference Include="FluentAssertions" Version="6.7.0" />
2323
<PackageReference Include="Microsoft.Reactive.Testing" Version="5.0.0" />
2424
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
2525
<PrivateAssets>all</PrivateAssets>

src/DynamicData.Tests/List/DynamicOrFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void ItemIsReplaced()
151151

152152
_results.Data.Count.Should().Be(2);
153153
_results.Messages.Count.Should().Be(3);
154-
_results.Data.Items.Should().BeEquivalentTo(9, 1);
154+
_results.Data.Items.Should().BeEquivalentTo(new[] { 9, 1});
155155
}
156156

157157
[Fact]

src/DynamicData.Tests/List/OrFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void ItemIsReplaced()
6666

6767
results.Data.Count.Should().Be(2);
6868
results.Messages.Count.Should().Be(3);
69-
results.Data.Items.Should().BeEquivalentTo(item1Replacement, item2);
69+
results.Data.Items.Should().BeEquivalentTo(new[] { item1Replacement, item2});
7070
}
7171
}
7272

src/DynamicData.Tests/List/TransformManyFixture.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void Add()
3737
_source.Add(mother);
3838

3939
_results.Data.Count.Should().Be(4);
40-
_results.Data.Items.Should().BeEquivalentTo(child1, child2, child3, frientofchild1);
40+
_results.Data.Items.Should().BeEquivalentTo(new[] { child1, child2, child3, frientofchild1});
4141
}
4242

4343
[Fact]
@@ -61,7 +61,7 @@ public void AddRange()
6161

6262
_source.AddRange(new[] { anotherRelative1, anotherRelative2 });
6363
_results.Data.Count.Should().Be(8);
64-
_results.Data.Items.Should().BeEquivalentTo(child1, child2, child3, frientofchild1, child4, child5, child6, child7);
64+
_results.Data.Items.Should().BeEquivalentTo(new[] { child1, child2, child3, frientofchild1, child4, child5, child6, child7});
6565
}
6666

6767
[Fact]
@@ -127,16 +127,16 @@ public void Remove()
127127

128128
tourProviders.AddRange(new[] { tp1, tp2, tp3 });
129129

130-
allTours.Items.Should().BeEquivalentTo(tour1_1, tour2_1, tour2_2);
130+
allTours.Items.Should().BeEquivalentTo(new[] { tour1_1, tour2_1, tour2_2});
131131

132132
tp3.Tours.Add(tour3_1);
133-
allTours.Items.Should().BeEquivalentTo(tour1_1, tour2_1, tour2_2, tour3_1);
133+
allTours.Items.Should().BeEquivalentTo(new[] { tour1_1, tour2_1, tour2_2, tour3_1});
134134

135135
tp2.Tours.Remove(tour2_1);
136-
allTours.Items.Should().BeEquivalentTo(tour1_1, tour2_2, tour3_1);
136+
allTours.Items.Should().BeEquivalentTo(new[] { tour1_1, tour2_2, tour3_1});
137137

138138
tp2.Tours.Add(tour2_1);
139-
allTours.Items.Should().BeEquivalentTo(tour1_1, tour2_1, tour2_2, tour3_1);
139+
allTours.Items.Should().BeEquivalentTo(new[] { tour1_1, tour2_1, tour2_2, tour3_1});
140140
}
141141

142142
[Fact]
@@ -172,7 +172,7 @@ public void RemoveRange()
172172

173173
_source.RemoveRange(0, 2);
174174
_results.Data.Count.Should().Be(2);
175-
_results.Data.Items.Should().BeEquivalentTo(child6, child7);
175+
_results.Data.Items.Should().BeEquivalentTo(new[] { child6, child7});
176176
}
177177

178178
[Fact]
@@ -192,7 +192,7 @@ public void Replace()
192192
_source.Replace(mother, updatedMother);
193193

194194
_results.Data.Count.Should().Be(4);
195-
_results.Data.Items.Should().BeEquivalentTo(child1, child2, frientofchild1, child4);
195+
_results.Data.Items.Should().BeEquivalentTo(new[] { child1, child2, frientofchild1, child4});
196196
}
197197

198198
public class Tour

src/DynamicData.Tests/List/TransformManyRefreshFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void AutoRefresh()
3535
person.Friends = new[] { friend1, friend2 };
3636

3737
_results.Data.Count.Should().Be(2, "Should be 2 in the cache");
38-
_results.Data.Items.Should().BeEquivalentTo(friend1, friend2);
38+
_results.Data.Items.Should().BeEquivalentTo(new[] { friend1, friend2});
3939
}
4040

4141
[Fact]
@@ -51,7 +51,7 @@ public void AutoRefreshOnOtherProperty()
5151
person.Age = 55;
5252

5353
_results.Data.Count.Should().Be(2, "Should be 2 in the cache");
54-
_results.Data.Items.Should().BeEquivalentTo(friend1, friend2);
54+
_results.Data.Items.Should().BeEquivalentTo(new[] { friend1, friend2});
5555
}
5656

5757
[Fact]
@@ -68,7 +68,7 @@ public void AutoRefreshRecursive()
6868
person.Friends = new[] { friend4 };
6969

7070
_results.Data.Count.Should().Be(2, "Should be 2 in the cache");
71-
_results.Data.Items.Should().BeEquivalentTo(friend4, friend2);
71+
_results.Data.Items.Should().BeEquivalentTo(new[] { friend4, friend2});
7272
}
7373

7474
public void Dispose()

0 commit comments

Comments
 (0)