Microsoft.Protocols.TestSuites.MS_FSSHTTP_FSSHTTPB.MS_FSSHTTP_FSSHTTPB_S07_EditorsTable.MSFSSHTTP_FSSHTTPB_S07_TC02_EditorsTable_JoinEditSession_EmptyUrl C# (CSharp) Method

MSFSSHTTP_FSSHTTPB_S07_TC02_EditorsTable_JoinEditSession_EmptyUrl() private method

        public void MSFSSHTTP_FSSHTTPB_S07_TC02_EditorsTable_JoinEditSession_EmptyUrl()
        {
            if (!Common.IsRequirementEnabled("MS-FSSHTTP-FSSHTTPB", 9001, this.Site))
            {
                Site.Assume.Inconclusive("Implementation does not support the editors table.");
            }

            // Initialize the service
            this.InitializeContext(this.DefaultFileUrl, this.UserName01, this.Password01, this.Domain);

            // Create a EditorsTable subRequest with all valid parameters.
            EditorsTableSubRequestType subRequest = SharedTestSuiteHelper.CreateEditorsTableSubRequestForJoinSession(SharedTestSuiteHelper.DefaultClientID, 3600);

            // Send the serverTime subRequest to the protocol server with Url attribute set to en empty string.
            CellStorageResponse response = this.Adapter.CellStorageRequest(string.Empty, new SubRequestType[] { subRequest });

            // Verify MS-FSSHTTP requirement: MS-FSSHTTP_R3009
            if (Common.IsRequirementEnabled("MS-FSSHTTP-FSSHTTPB", 3009, this.Site))
            {
                if (SharedContext.Current.IsMsFsshttpRequirementsCaptured)
                {
                    Site.CaptureRequirementIfIsNull(
                             response.ResponseCollection,
                             "MS-FSSHTTP",
                             3009,
                             @"[In Appendix B: Product Behavior] If the Url attribute of the corresponding Request element is an empty string, the implementation does not return Response element. <3> Section 2.2.3.5:  SharePoint Server 2013 will not return Response element.");
                }
                else
                {
                    Site.Assert.IsNull(
                        response.ResponseCollection,
                        @"[In Appendix B: Product Behavior] If the Url attribute of the corresponding Request element is an empty string, the implementation does not return Response element. <3> Section 2.2.3.5:  SharePoint Server 2013 will not return Response element.");
                }
            }
        }