From 675f04dc96e0693915120007c3f031e390e1ce91 Mon Sep 17 00:00:00 2001 From: Marijn van der Zee Date: Sat, 15 Aug 2015 20:14:19 +0200 Subject: [PATCH] Add init test, for #428 --- src/GitVersionExe.Tests/ArgumentParserTests.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/GitVersionExe.Tests/ArgumentParserTests.cs b/src/GitVersionExe.Tests/ArgumentParserTests.cs index 942f632792..a0c7c544aa 100644 --- a/src/GitVersionExe.Tests/ArgumentParserTests.cs +++ b/src/GitVersionExe.Tests/ArgumentParserTests.cs @@ -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); + } + } \ No newline at end of file