예제 #1
0
 public void Spin_FieldNumberIsWithinBounds()
 {
     _roulette.Spin();
     Assert.That(_roulette.GetResult().Number, Is.
                 GreaterThanOrEqualTo(0).And.
                 LessThanOrEqualTo(36));
 }
 public void GetResult_DifferentFieldsAsResult_FieldColorIsCorrect(int fieldNumber, FieldColor color)
 {
     _randomizer.Next().Returns((uint)fieldNumber);
     _uut.Spin();
     Assert.That(_uut.GetResult().Color, Is.EqualTo(color));
 }