public void Should_Be_Case_Insensitive(string key, bool expected) { // Given var options = new CakeOptions(); options.Arguments.Add("A", "B"); var arguments = new CakeArguments(options); // When var result = arguments.HasArgument(key); // Then Assert.Equal(expected, result); }
public void Should_Return_Whether_Or_Not_An_Argument_Exist(string key, bool expected) { // Given var options = new CakeOptions(); options.Arguments.Add("A", "B"); var arguments = new CakeArguments(options); // When var result = arguments.HasArgument(key); // Then Assert.Equal(expected, result); }
public void Should_Be_Case_Insensitive(string key, bool expected) { // Given var arguments = new CakeArguments(); arguments.SetArguments(new Dictionary <string, string> { { "A", "B" } }); // When var result = arguments.HasArgument(key); // Then Assert.Equal(expected, result); }
public void Should_Return_Whether_Or_Not_An_Argument_Exist(string key, bool expected) { // Given var arguments = new CakeArguments(); arguments.SetArguments(new Dictionary <string, string> { { "A", "B" } }); // When var result = arguments.HasArgument(key); // Then Assert.Equal(expected, result); }