Beispiel #1
0
 public void Tests()
 {
     var controller = new HomeController();
     var result = controller.Tests() as ViewResult;
     var model = result.ViewData.Model as List<CategoriesViewModel>;
     Assert.IsNotNull(model);
 }
Beispiel #2
0
 public void Index()
 {
     HomeController controller = new HomeController();
     Assert.IsInstanceOfType(controller, typeof(HomeController));
 }