public void playerTooManyDeaths_Test() { Rulebook rulebook = new Rulebook(); Rulebook rb = rulebook; rb.playerDeathTimer = 10.0f; rb.rulebookPlayerDeath = 5; Assert.Throws <NullReferenceException>(() => rb.PlayerTooManyDeaths()); Assert.That(rb.rulebookPlayerDeath, Is.EqualTo(0)); }