示例#1
0
        public void InfrastructureController_AddNullPropertyInformationMessage()
        {
            var userService = new Mock <IUserService>();
            var adwService  = new Mock <IAdwService>();

            var controller = new TestPagedGridController(userService.Object, adwService.Object);

            var result = controller.AddNullPropertyInformationMessage() as ViewResult;

            Assert.IsNotNull(result);
            Assert.IsTrue(result.ViewData.ModelMetadata.ModelType == typeof(bool));
            Assert.IsTrue((bool)result.Model);
        }