public bool IsCommandCreated(string commandName) { Argument.IsNotNullOrWhitespace("commandName", commandName); lock (_lockObject) { return _commands.ContainsKey(commandName); } }
public void ReturnsTrueForCreatedCommand() { var commandManager = new CommandManager(); commandManager.CreateCommand("MyCommand"); Assert.IsTrue(commandManager.IsCommandCreated("MyCommand")); }