public void m_CreateWebException_defaultMsg() { string msg = "Ex_msg"; WebException web = new WebException( msg, WebExceptionStatus.RequestCanceled ); QException qe = web.CreateWebExcaption(); Assert.AreEqual( msg, qe.Message ); }
public void m_CreateWebException_CustomMsg() { string msg = "Ex_msg"; string customMsg = "FFFFFFFFFUUUUUUUUU"; WebException web = new WebException( msg, WebExceptionStatus.RequestCanceled ); QException qe = web.CreateWebExcaption( customMsg ); Assert.AreEqual( customMsg, qe.Message ); }