// order: most to least specific public static void VerifyError(AstoriaResponse response) { // general error verification, called directly by response.Verify() if (!InStreamErrorExpected(response)) { // Error responses should ALWAYS be 1.0 for top-level errors VerifySpecificResponseVersion(response, 1, 0); } if (response.Request.ExpectedErrorIdentifier != null) { VerifyError(response, response.Request.ExpectedErrorIdentifier, response.Request.ExpectedErrorArguments); } // leaving this off until we're ready to fix it everywhere //else // AstoriaTestLog.Warning(false, "Error condition with ExpectedErrorIdentifier unset"); if (response.Exception != null) { AstoriaTestLog.HandleException(response.Exception); } }
protected override TestResult HandleException(Exception e) { return(AstoriaTestLog.HandleException(e)); }