Esempio n. 1
0
        public void CreateViewNumber()
        {
            var res = controller.CreateNumber(3);

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

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