public void MissingFolderPathThrow() { // ARRANGE var args = new string[] { }; var logic = new ArgumentsLogic(args); // ASSERT Assert.Throws <ArgumentException>( delegate { logic.GetFolderPath(); }); }
public void GetFolderPath() { // ARRANGE var args = new string[] { @"--folder-path=T:\TestData\*.txt" }; var logic = new ArgumentsLogic(args); // ACT var value = logic.GetFolderPath(); // ASSERT Assert.AreEqual(@"T:\TestData\*.txt", value); }