Exemple #1
0
        public void CreateViewABCD()
        {
            var res = controller.CreateABCD(5);

            Assert.IsInstanceOfType(res, typeof(ViewResult));
            var viewRes = res as ViewResult;

            Assert.IsInstanceOfType(viewRes.Model, typeof(ABCDQuestion));
            Assert.AreEqual(5, (viewRes.Model as Question).TestID);
            Assert.IsTrue(viewRes.ViewBag.Create);
        }