Skip to content

Commit

Permalink
Directory.GetCurrentDirectory()
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Nov 27, 2020
1 parent c26e33b commit 8b50db6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ public void GetPathListFormArgsTest_IgnoreNullOrWhiteSpace()
Assert.AreEqual(1, result.Count);
Assert.AreEqual("/",result.FirstOrDefault());
}

[TestMethod]
public void GetPathListFormArgsTest_CurrentDirectory()
{
var args = new List<string> {"-p"}.ToArray();
var result = new ArgsHelper(_appSettings).GetPathListFormArgs(args);

Assert.AreEqual(1, result.Count);
Assert.AreEqual(Directory.GetCurrentDirectory(),result.FirstOrDefault());
}

[TestMethod]
[ExpectedException(typeof(FieldAccessException))]
Expand Down

0 comments on commit 8b50db6

Please sign in to comment.