Skip to content

Commit e02dfa7

Browse files
committed
A few argument parser tests were erronously doing assignments instead of assertions
1 parent 58c0423 commit e02dfa7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GitVersionExe.Tests/ArgumentParserTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,23 +266,23 @@ public void can_log_to_console()
266266
public void nofetch_true_when_defined()
267267
{
268268
var arguments = ArgumentParser.ParseArguments("-nofetch");
269-
arguments.NoFetch = true;
269+
arguments.NoFetch.ShouldBe(true);
270270
}
271271

272272
[Test]
273273
public void other_arguments_can_be_parsed_before_nofetch()
274274
{
275275
var arguments = ArgumentParser.ParseArguments("targetpath -nofetch ");
276-
arguments.TargetPath = "targetpath";
277-
arguments.NoFetch = true;
276+
arguments.TargetPath.ShouldBe("targetpath");
277+
arguments.NoFetch.ShouldBe(true);
278278
}
279279

280280
[Test]
281281
public void other_arguments_can_be_parsed_after_nofetch()
282282
{
283283
var arguments = ArgumentParser.ParseArguments("-nofetch -proj foo.sln");
284-
arguments.NoFetch = true;
285-
arguments.Proj = "foo.sln";
284+
arguments.NoFetch.ShouldBe(true);
285+
arguments.Proj.ShouldBe("foo.sln");
286286
}
287287

288288
[Test]

0 commit comments

Comments
 (0)