public void VerifySoapFault(bool isSoapFault)
{
// If an SoapException is thrown, R366 can be captured.
Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R366, a SoapFault {0} returned.", isSoapFault ? "is" : "is not");
// Verify MS-SITESS requirement: MS-SITESS_R366
Site.CaptureRequirementIfIsTrue(
isSoapFault,
366,
@"[In Transport] Protocol server faults can be returned using SOAP faults as specified either in [SOAP1.1] section 4.4, or in [SOAP1.2/1] section 5.4.");
// If an SoapException is thrown, R355 can be captured.
Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R355, a SoapFault {0} returned.", isSoapFault ? "is" : "is not");
// Verify MS-SITESS requirement: MS-SITESS_R355
Site.CaptureRequirementIfIsTrue(
isSoapFault,
355,
@"[In Protocol Details] This protocol [MS-SITESS] allows protocol servers to notify protocol clients of application-level faults using SOAP faults.");
// If an SoapException is thrown, R356 can be captured.
Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R356, a SoapFault {0} returned.", isSoapFault ? "is" : "is not");
// Verify MS-SITESS requirement: MS-SITESS_R356
Site.CaptureRequirementIfIsTrue(
isSoapFault,
356,
@"[In Protocol Details] This protocol [MS-SITESS] allows protocol servers to provide additional details for SOAP faults by including either a detail element as specified in [SOAP1.1] section 4.4, or a Detail element as specified in [SOAP1.2/1] section 5.4.5, which conforms to the XML schema of the SOAPFaultDetails complex type specified in section 2.2.4.1.");
}