public void ReturnsCommandForCreatedCommand() { var commandManager = new CommandManager(); commandManager.CreateCommand("MyCommand"); Assert.IsNotNull(commandManager.GetCommand("MyCommand")); }
public void ThrowsArgumentNullExceptionForNullCommandName() { var commandManager = new CommandManager(); ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => commandManager.GetCommand(null)); }
public void ReturnsNullForNotCreatedCommand() { var commandManager = new CommandManager(); Assert.IsNull(commandManager.GetCommand("MyCommand")); }