Skip to content

Commit 21f7635

Browse files
committed
add test for a long argument containing only one character
1 parent 5e7f2d0 commit 21f7635

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Utility.CommandLine.Arguments.Tests/ArgumentsTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,15 @@ public void ParseOperand()
265265
Assert.Equal("two", test.OperandList[0]);
266266
}
267267

268+
[Fact]
269+
public void ParseSingleCharacterLong()
270+
{
271+
Arguments test = Arguments.Parse("--t one");
272+
273+
Assert.Single(test.ArgumentDictionary);
274+
Assert.Equal("one", test.ArgumentDictionary["t"]);
275+
}
276+
268277
[Fact]
269278
public void ParseOperands()
270279
{

0 commit comments

Comments
 (0)