public void NoThrows() { // Arrange TenPinBowlingFrame frame = new TenPinBowlingFrame(); // Act // Assert Assert.IsFalse(frame.IsSpare); Assert.IsFalse(frame.IsStrke); Assert.AreEqual(null, frame.Score); }
public void StrikeWithFutureThrows() { // Arrange TenPinBowlingFrame frame = new TenPinBowlingFrame(); // Act frame.RecordThrows(10); frame.RecordThrows(3, 4); // Assert Assert.AreEqual(17, frame.Score); }
public void TwoThrowsScore() { // Arrange TenPinBowlingFrame frame = new TenPinBowlingFrame(); // Act frame.RecordThrows(7, 2); // Assert Assert.IsFalse(frame.IsSpare); Assert.IsFalse(frame.IsStrke); Assert.AreEqual(9, frame.Score); }
public void SpareNoFutureThrows() { // Arrange TenPinBowlingFrame frame = new TenPinBowlingFrame(); // Act frame.RecordThrows(7, 3); // Assert Assert.IsTrue(frame.IsSpare); Assert.IsFalse(frame.IsStrke); Assert.AreEqual(null, frame.Score); }