public void InfrastructureController_AddMultipleDifferentPropertyInformationMessages() { var userService = new Mock <IUserService>(); var adwService = new Mock <IAdwService>(); var controller = new TestPagedGridController(userService.Object, adwService.Object); var result = controller.AddMultipleDifferentPropertyInformationMessages() as ViewResult; Assert.IsNotNull(result); Assert.IsTrue(((IEnumerable <string>)result.Model).Count() == 2); Assert.IsTrue(((IEnumerable <string>)result.Model).Contains(TestPagedGridController.InformationMessage)); Assert.IsTrue(((IEnumerable <string>)result.Model).Contains(TestPagedGridController.InformationMessage.Reverse().ToString())); }