Skip to content

Commit 7e401d7

Browse files
committed
Added additional tests to capture various input values to Parse()
1 parent 30ba524 commit 7e401d7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Utility.CommandLine.Arguments.Tests/Arguments.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void ParseDashedOperand()
207207
[Fact]
208208
public void ParseEmpty()
209209
{
210-
Exception ex = Record.Exception(() => CommandLine.Arguments.Parse());
210+
Exception ex = Record.Exception(() => CommandLine.Arguments.Parse(string.Empty));
211211

212212
Assert.Null(ex);
213213
}
@@ -270,6 +270,17 @@ public void ParseMultipleQuotes()
270270
Assert.Equal("4", test["test4"]);
271271
}
272272

273+
/// <summary>
274+
/// Tests the <see cref="Utility.CommandLine.Arguments.Parse(string)"/> method with no argument.
275+
/// </summary>
276+
[Fact]
277+
public void ParseNoArgument()
278+
{
279+
Exception ex = Record.Exception(() => CommandLine.Arguments.Parse());
280+
281+
Assert.Null(ex);
282+
}
283+
273284
/// <summary>
274285
/// Tests the <see cref="Utility.CommandLine.Arguments.Parse(string)"/> method with a null argument.
275286
/// </summary>

0 commit comments

Comments
 (0)