Example #1
0
        public void CreateObjets()
        {
            ObjetsController controller = new ObjetsController();
            //act
            ViewResult result = controller.Create() as ViewResult;

            //Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual("Create", result.ViewName);
        }
Example #2
0
        public void IndexObjets()
        {
            //Assert.IsNotNull(result);
            //Assert.AreEqual(result.RouteName, "DefaultApi");
            //Assert.AreEqual(result.RouteValues["id"], result.Content.Id);
            //Assert.AreEqual(result.Content.Name, item.Name);
            ////return View(db.Categories.ToList());
            //Arrange
            ObjetsController controller = new ObjetsController();
            //act
            ViewResult result = controller.Index() as ViewResult;

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