Microsoft.Protocols.TestSuites.MS_WEBSS.S02_OperationsOnContentTypeXmlDocument.MSWEBSS_S02_TC01_RemoveContentTypeXmlDocumentInvalidWithEmpty C# (CSharp) Method

MSWEBSS_S02_TC01_RemoveContentTypeXmlDocumentInvalidWithEmpty() private method

        public void MSWEBSS_S02_TC01_RemoveContentTypeXmlDocumentInvalidWithEmpty()
        {
            try
            {
                // Remove a document from the document collection of a site content type. 
                Adapter.RemoveContentTypeXmlDocument(string.Empty, this.GenerateRandomString(10));
                Site.Assert.Fail("The expected SOAP exception is not returned for the RemoveContentTypeXmlDocument operation.");
            }
            catch (SoapException)
            {
                // Catch the exception, then the following requirements will be captured.
                // Verify MS-WEBSS requirement: MS-WEBSS_R386
                Site.CaptureRequirement(
                    386,
                    @"[In RemoveContentTypeXmlDocument] If the content type specified by the contentTypeId is not found, the protocol server MUST return a SOAP exception.");

                // Catch the exception, then the following requirements will be captured.
                // Verify MS-WEBSS requirement: MS-WEBSS_R402
                Site.CaptureRequirement(
                    402,
                    @"[In RemoveContentTypeXmlDocumentResponse] If the operation fails, a SOAP exception MUST be returned.");
            }
        }