public void ItShouldThrowExceptionForInvalidCommandParameterCombination() { ArgumentList arguments = new ArgumentList(new string[] { "add", null }, new string[] { "--help", "add" }); string actual = arguments.GetParameter(1); string expected = "1"; Assert.AreEqual(expected, actual); }
public void ItShouldReturnThirdArgumentAsSecondParamater() { ArgumentList arguments = new ArgumentList(new string[] { "add", "1", "2" }, new string[] { "--help", "add" }); string actual = arguments.GetParameter(2); string expected = "2"; Assert.AreEqual(expected, actual); }