コード例 #1
0
        public void InitializeTheExceptionWithAMessage()
        {
            var target = new RasException(623, "This is a test exception!");

            Assert.AreEqual(623, target.NativeErrorCode);
            Assert.AreEqual("This is a test exception!", target.Message);
        }
コード例 #2
0
 public RasException(uint errorCode) : base(RasException.Code2RasErrorMessage(errorCode))
 {
     this._errorCode = errorCode;
 }