Exemplo n.º 1
0
 public void IsFinishedCommandSaysContinueIfNotDone()
 {
     var c = new IsFinishedCommand();
     var rs = new RuleSet() { FoundElements = TestTools.GenerateElements( 2 ), Rules = TestTools.GenerateRules( 2 ) };
     var a = new AlchemyController( rs );
     Assert.AreEqual( Do.KeepProcessing, c.Run( a, new TestCommunicator() ) );
 }
Exemplo n.º 2
0
 public void IsFinishedCommandSaysExitWhenControllerIsDone()
 {
     var c = new IsFinishedCommand();
     var rs = new RuleSet() { FoundElements = TestTools.GenerateElements( 2 ), Rules = TestTools.GenerateRules( 3 ) };
     var a = new AlchemyController( rs );
     Assert.AreEqual( Do.Exit, c.Run( a, new TestCommunicator() ) );
 }
Exemplo n.º 3
0
 public void IsFinishedCommandSaysContinueIfEmptyElementList()
 {
     var c = new IsFinishedCommand();
     var rs = new RuleSet();
     var a = new AlchemyController( rs );
     Assert.AreEqual( Do.KeepProcessing, c.Run( a, new TestCommunicator() ) );
 }