Adding Unit Test to very case insensitive behavior

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-11-24 16:03:08 -08:00
parent de0a072492
commit c8fbbbe53e

View File

@@ -75,6 +75,14 @@ namespace Orchard.Tests.Commands {
Assert.That(commandContext.CommandDescriptor.HelpText, Is.EqualTo(string.Empty));
}
[Test]
public void TestCaseInsensitiveForCommand() {
var commandContext = CreateCommandContext("BAZ", new Dictionary<string, string> { { "VERBOSE", "true" } });
_handler.Execute(commandContext);
Assert.That(commandContext.Output.ToString(), Is.EqualTo("Command Baz Called : This was a test"));
}
[Test]
public void TestBooleanSwitchForCommand() {
var commandContext = CreateCommandContext("Baz", new Dictionary<string, string> {{"Verbose", "true"}});