Пример #1
0
        public void TestAccuracyReferenceLoadingExceptionConstructor3()
        {
            Exception ex = new Exception("Inner Exception Message");
            ReferenceLoadingException excp =
                new ReferenceLoadingException("Error Message", ex);

            Assert.AreEqual(excp.Message, "Error Message", "Exception message has wrong value");
            Assert.AreEqual(excp.InnerException, ex, "Inner exception has wrong value");
            Assert.AreEqual(excp.InnerException.Message, "Inner Exception Message",
                            "Inner exception message has wrong value");
        }
Пример #2
0
        public void TestAccuracyReferenceLoadingExceptionConstructor2()
        {
            ReferenceLoadingException excp = new ReferenceLoadingException("Error Message");

            Assert.AreEqual(excp.Message, "Error Message", "Exception message has wrong value");
        }
Пример #3
0
 public void TestAccuracyReferenceLoadingExceptionConstructor1()
 {
     ReferenceLoadingException excp = new ReferenceLoadingException();
 }