Пример #1
0
 public void ReadkeyCommandHandlerExecuteShouldThrowForNullCommand()
 {
     var readkeyHandler = new ReadkeyCommandHandler(this.keyMapService, this.mainWindow);
     readkeyHandler.Invoking(t => t.Execute(null))
                   .ShouldThrow<ArgumentNullException>()
                   .And.ParamName.Should()
                   .Be("command");
 }
Пример #2
0
 public void ReadkeyCommandHandlerExecuteShouldThrowForNullKeyMapName()
 {
     var readkeyHandler = new ReadkeyCommandHandler(this.keyMapService, this.mainWindow);
     readkeyHandler.Invoking(t => t.Execute(new ReadkeyCommand())).ShouldThrow<ArgumentException>();
 }