public void EmptyArgsListReturnsTest0() { var options = new InputOptions(null); Assert.Equal(0, options.GetInt("test")); Assert.True(options.ValidOptions); }
public void CheckOutOfBoundsArgumentsReturnInvalidOption() { string[] array = new string[] { "-p" }; var options = new InputOptions(array); Assert.False(options.ValidOptions); Assert.Equal(60, options.GetInt("ping")); }
public void ShortTestOptionReturnsPing1() { string[] array = new string[] { "-t" }; var options = new InputOptions(array); Assert.Equal(1, options.GetInt("test")); Assert.True(options.ValidOptions); }