public void MSLISTSWS_S03_TC57_GetVersionCollection_ExcludesParameter()
{
#region AddList
string listId = TestSuiteHelper.CreateList();
#endregion
// Add one item into the list
List<string> listIds = TestSuiteHelper.AddListItems(listId, 1);
string addedListItemId = listIds[0];
#region GetVersionCollection
// Call GetVersionCollection.
bool isSoapFaultExisted = false;
string errorCode = string.Empty;
try
{
this.listswsAdapter.GetVersionCollection(
listId,
addedListItemId,
null);
}
catch (SoapException sopaEx)
{
isSoapFaultExisted = true;
errorCode = TestSuiteHelper.GetErrorCode(sopaEx);
}
this.Site.Assert.IsTrue(isSoapFaultExisted, "There is no Soap Fault generated for requirement#769,#1946,#777");
#endregion
#region CaptureRequirement 769,1946,777
Site.CaptureRequirementIfIsTrue(
string.IsNullOrEmpty(errorCode),
769,
@"[In GetVersionCollection operation] If the protocol client excludes one or more "
+ "parameters, the protocol server MUST return a SOAP fault.");
Site.CaptureRequirementIfIsTrue(
string.IsNullOrEmpty(errorCode),
1946,
@"[In GetVersionCollection operation] [If the protocol client excludes one or more parameters, "
+ "or if the strListID is null, the protocol server MUST return a SOAP fault.]There is no error code for this fault.");
Site.CaptureRequirementIfIsTrue(
string.IsNullOrEmpty(errorCode),
777,
@"[In GetVersionCollection operation] otherwise [if the operation fails], the protocol "
+ "server MUST return a SOAP fault.");
#endregion
}