public ActionResult HitBee() { game = (BeeGame)Session["game"]; if (game.IsPlaying) { game.HitBee(game.Hive); } return View("Index", game); }
public void Called_HitBee_Should_decrease_bee_lifespan() { // Arrange var sut = new BeeGame().Start(settings); var startScore = sut.Hive.Select(b => b.LifeSpan).Sum(); // Act var teste = sut.HitBee(sut.Hive); var newScore = sut.Hive.Select(b => b.LifeSpan).Sum(); // Assert Assert.AreNotEqual(newScore, startScore); }