예제 #1
0
 public void Contains_should_throw_if_option_null()
 {
     ((Action)(() => ScriptOptionsParser.Contains("", null))).Should()
     .Throw <ArgumentNullException>()
     .WithMessage("Value cannot be null.\r\nParameter name: option");
 }
예제 #2
0
 public void Contains_should_return_expected(string arguments, string option, bool expected)
 {
     ScriptOptionsParser.Contains(arguments, option).Should().Be(expected);
 }
예제 #3
0
 public void Contains_should_throw_if_arguments_null()
 {
     ((Action)(() => ScriptOptionsParser.Contains(null, null))).Should()
     .Throw <ArgumentNullException>()
     .WithMessage("Value cannot be null. (Parameter 'arguments')");
 }