public void ThrowNotFoundException_IfPlayerNotPlayed() { var exception = Assert.Throws <HttpResponseException>(() => _controller.GetPlayerStats("Test.Player")); Assert.AreEqual(exception.Response.StatusCode, HttpStatusCode.NotFound); }