/*--------------------------------------------------------------------------------------------*/ private void AssertFault(TestDelegate pDelegate, LogoutErrors pError, LogoutErrorDescs pDesc) { OauthException oe = TestUtil.Throws <OauthException>(pDelegate); Assert.NotNull(oe.OauthError, "OauthError should filled."); Assert.AreEqual(pError + "", oe.OauthError.Error, "Invalid OauthError.Error"); Assert.AreEqual(OauthLogoutTasks.ErrDescStrings[(int)pDesc] + "", oe.OauthError.ErrorDesc, "Invalid OauthError.ErrorDesc"); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ private OauthException NewFault(LogoutErrors pErr, LogoutErrorDescs pDesc) { return(new OauthException(pErr.ToString(), ErrDescStrings[(int)pDesc])); }