예제 #1
0
        public void Index()
        {
            TamagotchisController tamagotchisController = new TamagotchisController(new DummyTamagotchiRepository());

            // Act
            ViewResult result = tamagotchisController.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
예제 #2
0
        public void TamagotchisControllerIndexNotNull()
        {
            // Arrange
            var controller = new TamagotchisController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert

            Assert.IsNotNull(result);
        }