Beispiel #1
0
        public void TestInvalidDetailsViewRedirect()
        {
            var controller = new AttendancesController();
            var result     = (HttpNotFoundResult)controller.Details(new Guid());

            Assert.AreEqual(404, result.StatusCode);
        }
Beispiel #2
0
        public void TestNullDetailsViewRedirect()
        {
            var controller = new AttendancesController();
            var result     = (HttpStatusCodeResult)controller.Details(null);

            Assert.AreEqual(400, result.StatusCode);
        }
Beispiel #3
0
        public void TestIndexView()
        {
            var controller = new AttendancesController();
            var result     = controller.Index() as ViewResult;

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