public void Index() { TamagotchisController tamagotchisController = new TamagotchisController(new DummyTamagotchiRepository()); // Act ViewResult result = tamagotchisController.Index() as ViewResult; // Assert Assert.IsNotNull(result); }
public void TamagotchisControllerIndexNotNull() { // Arrange var controller = new TamagotchisController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); }