public void MSLISTSWS_S01_TC14_GetListAndView_InvalidGUID()
{
// Add a generic list.
string listGuid = TestSuiteHelper.CreateList();
bool createListSucceeded = !string.IsNullOrEmpty(listGuid);
this.Site.Assert.IsTrue(createListSucceeded, "Test suite should add the list successfully.");
string errorCode = string.Empty;
string invalidViewName = TestSuiteHelper.GetInvalidGuidAndNocorrespondString();
bool isExistentFault = false;
// Call method GetListAndView with an invalid viewName
try
{
this.listswsAdapter.GetListAndView(listGuid, invalidViewName);
}
catch (SoapException exp)
{
errorCode = TestSuiteHelper.GetErrorCode(exp);
isExistentFault = true;
}
this.Site.Assert.IsTrue(isExistentFault, "The server response should contain a SOAP fault while requesting GetListAndView with invalid view name.");
// If error code error code 0x82000001 is returned, then capture R3014 and R3015.
Site.CaptureRequirementIfAreEqual<string>(
"0x82000001",
errorCode,
3014,
@"[GetListAndView] If the specified viewName is not a valid GUID and is not an empty string, the protocol server MUST return a SOAP fault with error code 0x82000001.");
Site.CaptureRequirementIfAreEqual<string>(
"0x82000001",
errorCode,
3015,
@"[GetListAndView] [If the specified viewName is not a valid GUID and is not an empty string, the protocol server MUST return a SOAP fault with error code 0x82000001.] This indicates that a required parameter is missing or invalid.");
}