示例#1
0
        /*--------------------------------------------------------------------------------------------*/
        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");
        }
示例#2
0
 ////////////////////////////////////////////////////////////////////////////////////////////////
 /*--------------------------------------------------------------------------------------------*/
 private OauthException NewFault(LogoutErrors pErr, LogoutErrorDescs pDesc)
 {
     return(new OauthException(pErr.ToString(), ErrDescStrings[(int)pDesc]));
 }