public void InvalidFileNumberThrow() { // ARRANGE var args = new string[] { @"--file-number-seed=XXX" }; var logic = new ArgumentsLogic(args); // ASSERT Assert.Throws <ArgumentException>( delegate { logic.GetFileNumberSeed(); }); }
public void MissingFileNumberReturnsDefault() { // ARRANGE var args = new string[] { }; var logic = new ArgumentsLogic(args); // ACT var result = logic.GetFileNumberSeed(); // ASSERT Assert.AreEqual(1, result); }
public void GetFileNumberSeed() { // ARRANGE var args = new string[] { @"--file-number-seed=666" }; var logic = new ArgumentsLogic(args); // ACT var value = logic.GetFileNumberSeed(); // ASSERT Assert.AreEqual(666, value); }