public void MSVIEWSS_S04_TC09_GetViewHtml_EmptyViewName_NoDefaultView()
{
string listName = TestSuiteBase.ListGUID;
// Add a default view.
string defaultViewName = AddView(true, Query.EmptyQueryInfo, ViewType.Grid);
// Delete the default view.
this.DeleteView(defaultViewName);
bool caughtSoapException = false;
// Call GetViewHtml method with empty viewName.
try
{
Adapter.GetViewHtml(listName, string.Empty);
}
catch (SoapException soapException)
{
caughtSoapException = true;
// If server returns a SOAP fault, then capture below requirement.
Site.CaptureRequirementIfIsNotNull(
soapException,
24,
@"[In viewName] If the default list view does not exist, the protocol server MUST return a SOAP fault message.");
}
this.Site.Assert.IsTrue(caughtSoapException, "There should be a SOAP exception in the response.");
}