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

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