示例#1
0
        public void ViewSelectionTest1()
        {
            ExampleController target = new ExampleController();
            var result = target.HomePage();

            Assert.AreEqual("", result.ViewName);
            Assert.IsInstanceOfType(result.ViewData.Model, typeof(DateTime));
            Assert.AreEqual("Hello", result.ViewBag.Message);
        }