Ejemplo n.º 1
0
        public void TestAccuracyDigesterExceptionConstructor3()
        {
            Exception         ex   = new Exception("Inner Exception Message");
            DigesterException excp =
                new DigesterException("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");
        }
Ejemplo n.º 2
0
        public void TestAccuracyDigesterExceptionConstructor2()
        {
            DigesterException excp = new DigesterException("Error Message");

            Assert.AreEqual(excp.Message, "Error Message", "Exception message has wrong value");
        }
Ejemplo n.º 3
0
 public void TestAccuracyDigesterExceptionConstructor1()
 {
     DigesterException excp = new DigesterException();
 }