コード例 #1
0
        public void IndexViewLoads()
        {
            //act
            var actual = controller.Index();

            // assert
            Assert.IsNotNull(actual);
        }
コード例 #2
0
        public void BrewariesController_GetAll()
        {
            BreweriesController controller = new BreweriesController(new FakeRepositories.FakeBrewaryRepository());
            ViewResult          result     = controller.Index() as ViewResult;

            Assert.IsNotNull(result);
        }