Exemple #1
0
 public void ExitCommandReturnsExitDirectiveWhenRun()
 {
     var c = new ExitCommand();
     var result = c.Run( "", new AlchemyController( new RuleSet() ), new TestCommunicator() );
     Assert.AreEqual( Do.Exit, result );
 }
Exemple #2
0
 public void ExitCommandExists()
 {
     ICommand com = new ExitCommand();
     Assert.IsTrue( com.AppliesTo( "! " ) );
 }