mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding Unit Test to very case insensitive behavior
--HG-- branch : dev
This commit is contained in:
@@ -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"}});
|
||||
|
Reference in New Issue
Block a user