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