public void RegisterCommand_DoesNotRegisterCommandIfNoCommandAttributesArePresent() { // Arrange CommandManager cm = new CommandManager(); ICommand cmd = new MockCommandEmptyAttributes(); cm.RegisterCommand(cmd); // Act var registeredCommands = cm.GetCommands(); // Assert Assert.False(registeredCommands.Any()); }
public void RegisterCommand_DoesNotRegisterCommandIfNoCommandAttributesArePresent() { // Arrange CommandManager cm = new CommandManager(); ICommand cmd = new MockCommandEmptyAttributes(); cm.RegisterCommand(cmd); // Act var registeredCommands = cm.GetCommands(); // Assert Assert.False(registeredCommands.Any()); }