Beispiel #1
0
        public void IndexViewError()
        {
            //arrange
            //handled on TestInitialized

            //act
            var result = controller.Create(areas[0]);

            if (result is ViewResult)
            {
                var viewREsult = result as ViewResult;
                Assert.AreEqual("Index", viewREsult.ViewName);
            }
        }
Beispiel #2
0
        public void CreateViewLoads()
        {
            // Arrange
            controller = new AreasController();

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

            // Assert
            Assert.AreEqual("Create", result.ViewName);
        }