public TestCommand Wrap(TestCommand command)
 {
     return(new ExpectedExceptionCommand(command, _expectedExceptionType, ExpectedMessage));
 }
 public ExpectedExceptionCommand(TestCommand innerCommand, Type expectedType, string?expectedMessage)
     : base(innerCommand)
 {
     _expectedType    = expectedType;
     _expectedMessage = expectedMessage;
 }
 public IOaktonCommand CreateCommand(Type commandType)
 {
     LastCreatedCommand = new TestCommand("created command");
     return(LastCreatedCommand);
 }