示例#1
0
        public void Can_Partial_View_With_Ajax()
        {
            //arrange
            ExampleController target = new ExampleController();

            target.term = true;
            int load = 2;

            //action
            PartialViewResult result = (PartialViewResult)target.Load2(load);

            //assert
            Assert.AreEqual(result.ViewData.Model, null);
            Assert.AreEqual(result.ViewName, "");
        }