Пример #1
0
        public void Emails_ForAccessedUser_ReturnActionResult(bool param)
        {
            // Arrange
            InitializeEmails(param);
            var controller = new GroupController();

            // Act
            var result = controller.Emails(GroupId) as ViewResult;

            // Assert
            result.ShouldSatisfyAllConditions(
                () => result.ShouldNotBeNull(),
                () => result.View.ShouldBeNull(),
                () => result.MasterName.ShouldBe(string.Empty));
        }