Example #1
0
 public void CanRunCommand()
 {
     ICommand command = new TestCommand();
     ICommunicator com = new TestCommunicator();
     AlchemyController con = new AlchemyController( new RuleSet() );
     command.Run( "input", con, com );
 }
Example #2
0
 public void CommandHasPriority()
 {
     ICommand command = new TestCommand();
     Assert.AreEqual( 0, command.Priority );
 }
Example #3
0
        public void CommandHasIsCommandMethod()
        {
            ICommand command = new TestCommand();

            Assert.IsTrue( command.AppliesTo( "any string" ) );
        }
Example #4
0
 public void CanGetInstructions()
 {
     ICommand com = new TestCommand();
     Assert.AreNotEqual( "UnitTests.TestCommand", com.ToString() );
 }