Skip to content

Commit

Permalink
Add init test, for GitTools#428
Browse files Browse the repository at this point in the history
  • Loading branch information
serra committed Aug 15, 2015
1 parent 2894d9a commit 675f04d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/GitVersionExe.Tests/ArgumentParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,17 @@ public void showconfig_true_when_defined(string args)
[Test]
[TestCase("")]
[TestCase("-showconfig-")]
public void showconfig_false_when_minus_or_notdefined_(string args)
public void showconfig_false_when_minus_or_notdefined(string args)
{
var arguments = ArgumentParser.ParseArguments(args);
arguments.ShowConfig.ShouldBe(false);
}

[TestCase("init")]
public void can_use_init_as_postional_arg(string args)
{
var arguments = ArgumentParser.ParseArguments(args);
arguments.Init.ShouldBe(true);
}

}

0 comments on commit 675f04d

Please sign in to comment.