예제 #1
0
 public void ACounterCanFlipBetweenColours(string originalColour, string newColour)
 {
     var counter = new Counter(originalColour);
     Assert.That(originalColour, Is.EqualTo(counter.ColourDisplayed));
     counter.Flip();
     Assert.That(newColour, Is.EqualTo(counter.ColourDisplayed));
 }
예제 #2
0
 public void ASquareKnowsItsContents(string newContents, string originalContents)
 {
     var square = new Square();
     var counter = new Counter();
     counter.Colour = originalContents;
     square.PlacePiece(counter);
     counter.Flip();
     Assert.That(square.Contents().Colour, Is.EqualTo(newContents));
 }