public void MSLISTSWS_S01_TC12_DeleteNonExistentList_WSS3()
{
Site.Assume.IsTrue(Common.IsRequirementEnabled(2448, this.Site), @"Test is executed only when R2448Enabled is set to true.");
// Delete the list with a list name that is nonexistent.
string invalidGuid = TestSuiteHelper.GetInvalidGuidAndNocorrespondString();
string soapFault = "GUID should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).";
bool issoapFaultGenerated = false;
string errorString = string.Empty;
string errorCode = string.Empty;
try
{
// Delete the list
this.listswsAdapter.DeleteList(invalidGuid);
}
catch (SoapException exp)
{
issoapFaultGenerated = true;
errorString = TestSuiteHelper.GetErrorString(exp);
errorCode = TestSuiteHelper.GetErrorCode(exp);
}
this.Site.Assert.IsTrue(issoapFaultGenerated, "There should be a Soap fault generated when call DeleteList operation with invalid Guid");
this.Site.Assert.IsTrue(errorString.Equals(soapFault, StringComparison.OrdinalIgnoreCase), "The returned SoapFault should match with TD.");
this.Site.Assert.IsTrue(string.IsNullOrEmpty(errorCode), "The Soap exception contains error Code.");
// If the protocol server returns the SOAP fault with no error code:
// "GUID should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx)", then capture R2448.
Site.CaptureRequirement(
2448,
@"[In Appendix B: Product Behavior]Implementation does not return a SOAP fault with error code 0x82000006. (<43> Section 3.1.4.13: 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)"".)");
}