public override void Validate(object sender, ValidationEventArgs e)
{
if (e.Response.StatusDescription == expectedStatusDescription)
{
e.Message = "The expected status description was returned.";
}
else
{
e.IsValid = false;
e.Message = string.Format("The expected status description was not returned. Expected: {0} Actual: {1}.", expectedStatusDescription, e.Response.StatusDescription);
}
}
}