public void tooManyPlayerHits() { Rulebook rulebook = new Rulebook(); Rulebook rb = rulebook; rb.tooManyPlayerHitsTimer = 5.0f; rb.isPlayerHitTooMuch = 4; Assert.Throws <NullReferenceException>(() => rb.TooManyPlayerHits()); Assert.That(rb.tooManyPlayerHitsTimer, Is.EqualTo(0.0f)); Assert.That(rb.isPlayerHitTooMuch, Is.EqualTo(0)); }