Пример #1
0
        public void RibCommonExceptionTest1()
        {
            const string msg = "fgsdgnsdkgh";

            var me = new RibCommonException(msg);

            Assert.IsNull(me.InnerException);
            Assert.AreEqual(msg, me.Message);
        }
Пример #2
0
        public void RibCommonExceptionTest2()
        {
            const string msg = "fgsdgnsdkgh";
            var ex = new Exception();

            var me = new RibCommonException(msg, ex);

            Assert.AreEqual(ex, me.InnerException);
            Assert.AreEqual(msg, me.Message);
        }
Пример #3
0
        public void RibCommonExceptionTest()
        {
            var me = new RibCommonException();

            Assert.IsNull(me.InnerException);
        }