public void MSLISTSWS_S02_TC17_DeleteContentTypeXmlDocument_InvalidListName_WSS3()
{
Site.Assume.IsTrue(Common.IsRequirementEnabled(2446, this.Site), @"Test is executed only when R2446Enabled is set to true.");
// Initialize an invalid ListName structure.
string invalidListName = TestSuiteHelper.GetInvalidGuidAndNocorrespondString();
// Identify whether the soap fault is returned.
bool isReturnSopeFault = false;
try
{
#region Delete a content Type Xml Document with an invalid listname.
// Call DeleteContentTypeXmlDocument method to delete a content type with an invalid ListName.
this.listswsAdapter.DeleteContentTypeXmlDocument(invalidListName, null, null);
#endregion
}
catch (SoapException soapException)
{
// Verify MS-LISTSWS requirement: MS-LISTSWS_R2446
bool isVerifyR2446 = false;
string error = TestSuiteHelper.GetErrorCode(soapException);
isVerifyR2446 = string.IsNullOrEmpty(error) && soapException.Detail.InnerText.Equals("Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");
// If the value of the error is null and the detailed message of SoapException is equal to the
// specific value, then R2446 should be covered.
Site.CaptureRequirementIfIsTrue(
isVerifyR2446,
2446,
@"[In Appendix B: Product Behavior]Implementation does not return a SOAP fault with error code 0x82000006. (<42> Section 3.1.4.12: Windows SharePoint Services 3.0 return the following SOAP fault with no error code: ""GUID should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx)"".)");
isReturnSopeFault = true;
}
Site.Assert.IsTrue(isReturnSopeFault, "The soap fault should be returned by the server.");
}