예제 #1
0
 public void StepWithLastChoiceTest()
 {
     var contestant1 = new Contestant("TitForTat", new TitForTat());
       var result = contestant1.Step(StrategyChoice.Defect);
       Assert.AreEqual(result, StrategyChoice.Defect);
 }
예제 #2
0
 public void StepNoLastChoiceTest()
 {
     var contestant1 = new Contestant("TitForTat", new TitForTat());
       var result = contestant1.Step(null);
       Assert.AreEqual(result,StrategyChoice.Cooperate);
 }