|
4 | 4 | using CommandLine.Tests.Fakes;
|
5 | 5 | using CommandLine.Text;
|
6 | 6 | using Xunit;
|
| 7 | +using FluentAssertions; |
7 | 8 |
|
8 | 9 | namespace CommandLine.Tests.Unit
|
9 | 10 | {
|
@@ -40,11 +41,11 @@ public void AutoBuild_without_ordering()
|
40 | 41 | "--version Display version information.",
|
41 | 42 | "value pos. 0"
|
42 | 43 | };
|
43 |
| - Assert.Equal(expected.Count, helps.Count); |
| 44 | + expected.Count.Should().Be(helps.Count); |
44 | 45 | int i = 0;
|
45 | 46 | foreach (var expect in expected)
|
46 | 47 | {
|
47 |
| - Assert.Equal(expect.Trim(), helps[i].Trim()); |
| 48 | + expect.Trim().Should().Be(helps[i].Trim()); |
48 | 49 | i++;
|
49 | 50 | }
|
50 | 51 |
|
@@ -88,11 +89,11 @@ public void AutoBuild_with_ordering()
|
88 | 89 | "--version Display version information.",
|
89 | 90 | "value pos. 0"
|
90 | 91 | };
|
91 |
| - Assert.Equal(expected.Count, helps.Count); |
| 92 | + expected.Count.Should().Be(helps.Count); |
92 | 93 | int i = 0;
|
93 | 94 | foreach (var expect in expected)
|
94 | 95 | {
|
95 |
| - Assert.Equal(expect.Trim(), helps[i].Trim()); |
| 96 | + expect.Trim().Should().Be(helps[i].Trim()); |
96 | 97 | i++;
|
97 | 98 | }
|
98 | 99 |
|
@@ -171,11 +172,11 @@ public void AutoBuild_with_ordering_on_shortName()
|
171 | 172 | "--version Display version information.",
|
172 | 173 | "value pos. 0"
|
173 | 174 | };
|
174 |
| - Assert.Equal(expected.Count, helps.Count); |
| 175 | + expected.Count.Should().Be(helps.Count); |
175 | 176 | int i = 0;
|
176 | 177 | foreach (var expect in expected)
|
177 | 178 | {
|
178 |
| - Assert.Equal(expect.Trim(), helps[i].Trim()); |
| 179 | + expect.Trim().Should().Be(helps[i].Trim()); |
179 | 180 | i++;
|
180 | 181 | }
|
181 | 182 | }
|
|
0 commit comments