Skip to content

Commit

Permalink
Cleanup only
Browse files Browse the repository at this point in the history
  • Loading branch information
serra committed Aug 24, 2015
1 parent 3a7f462 commit 7feb103
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/GitVersionExe.Tests/ArgumentParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@
[TestFixture]
public class ArgumentParserTests
{
[Explicit]
[Test]
public void PrintEntireHelp()
{
Parser.Default.ParseArguments(new[] { "help" }, AllOptionTypes().ToArray());
foreach (var verb in AllVerbs())
{
PrintVerbHelp(verb);
}
}

[TestCaseSource("AllVerbs")]
public void PrintVerbHelp(string verb)
{
Expand All @@ -34,7 +23,7 @@ IEnumerable<string> AllVerbs()
.Where(a => a != null).Select(a => a.Name);
}

IEnumerable<Type>AllOptionTypes()
IEnumerable<Type> AllOptionTypes()
{
yield return typeof(InspectOptions);
yield return typeof(InitOptions);
Expand All @@ -49,8 +38,8 @@ IEnumerable<string> AllVerbs()
public void InputVariablesMustHaveCorrectDefaultValues()
{
var iv = new InputVariables();
iv.TargetUrl.ShouldBe(null);

iv.TargetUrl.ShouldBe(null);

iv.DynamicRepositoryLocation.ShouldBe(null);

Expand All @@ -69,6 +58,15 @@ public void InputVariablesMustHaveCorrectDefaultValues()
iv.TargetPath.ShouldBe(Environment.CurrentDirectory);
}

// add tests for mapping input options to input variables
[Explicit]
[Test]
public void PrintEntireHelp()
{
Parser.Default.ParseArguments(new[] {"help"}, AllOptionTypes().ToArray());
foreach (var verb in AllVerbs())
{
PrintVerbHelp(verb);
}
}

}
}

0 comments on commit 7feb103

Please sign in to comment.