Exemplo 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 );
 }
Exemplo n.º 2
0
 public void CommandHasPriority()
 {
     ICommand command = new TestCommand();
     Assert.AreEqual( 0, command.Priority );
 }
Exemplo n.º 3
0
        public void CommandHasIsCommandMethod()
        {
            ICommand command = new TestCommand();

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