public void CanRunCommand() { ICommand command = new TestCommand(); ICommunicator com = new TestCommunicator(); AlchemyController con = new AlchemyController( new RuleSet() ); command.Run( "input", con, com ); }
public void CommandHasPriority() { ICommand command = new TestCommand(); Assert.AreEqual( 0, command.Priority ); }
public void CommandHasIsCommandMethod() { ICommand command = new TestCommand(); Assert.IsTrue( command.AppliesTo( "any string" ) ); }
public void CanGetInstructions() { ICommand com = new TestCommand(); Assert.AreNotEqual( "UnitTests.TestCommand", com.ToString() ); }