public void ReadkeyCommandHandlerExecuteShouldThrowForNullCommand() { var readkeyHandler = new ReadkeyCommandHandler(this.keyMapService, this.mainWindow); readkeyHandler.Invoking(t => t.Execute(null)) .ShouldThrow<ArgumentNullException>() .And.ParamName.Should() .Be("command"); }
public void ReadkeyCommandHandlerExecuteShouldThrowForNullKeyMapName() { var readkeyHandler = new ReadkeyCommandHandler(this.keyMapService, this.mainWindow); readkeyHandler.Invoking(t => t.Execute(new ReadkeyCommand())).ShouldThrow<ArgumentException>(); }