public void TestIfAnExceptionIsThrowWithInvalidCommandKeys()
{
var invalidKeys = new string[] { "jksdfjds", "redo", "quit", "pop_all", "cheat", "throw", string.Empty };
foreach (var key in invalidKeys)
{
try
{
this.commandFactory.CreateCommand(key);
}
catch (Exception)
{
continue;
}
Assert.Fail();
}
}