コード例 #1
0
ファイル: CommandTest.cs プロジェクト: Zazcallabah/Alchemist
 public void CanRunCommand()
 {
     ICommand command = new TestCommand();
     ICommunicator com = new TestCommunicator();
     AlchemyController con = new AlchemyController( new RuleSet() );
     command.Run( "input", con, com );
 }
コード例 #2
0
ファイル: CommandTest.cs プロジェクト: Zazcallabah/Alchemist
 public void CommandHasPriority()
 {
     ICommand command = new TestCommand();
     Assert.AreEqual( 0, command.Priority );
 }
コード例 #3
0
ファイル: CommandTest.cs プロジェクト: Zazcallabah/Alchemist
        public void CommandHasIsCommandMethod()
        {
            ICommand command = new TestCommand();

            Assert.IsTrue( command.AppliesTo( "any string" ) );
        }
コード例 #4
0
ファイル: CommandTest.cs プロジェクト: Zazcallabah/Alchemist
 public void CanGetInstructions()
 {
     ICommand com = new TestCommand();
     Assert.AreNotEqual( "UnitTests.TestCommand", com.ToString() );
 }