public void LoadAddUDFData_ForAccessedUser_ReturnActionResult() { // Arrange InitializeAddUdf(); var controller = new SubscriberController(); // Act var result = controller.LoadAddUDFData(GroupId, GroupId) as PartialViewResult; // Assert result.ShouldSatisfyAllConditions( () => result.ShouldNotBeNull(), () => result.ViewName.ShouldBe(PartialModal)); }