void run()
 {
   // Just check the classes can be instantiated and other methods work as expected
   DIgnoresDerived a = new DIgnoresDerived();
   if (a.Triple(5) != 15)
     throw new Exception("Triple failed");
   DAbstractIgnoresDerived b = new DAbstractIgnoresDerived();
   if (b.Quadruple(5) != 20)
     throw new Exception("Quadruple failed");
 }
예제 #2
0
        void run()
        {
            // Just check the classes can be instantiated and other methods work as expected
            DIgnoresDerived a = new DIgnoresDerived();

            if (a.Triple(5) != 15)
            {
                throw new Exception("Triple failed");
            }
            DAbstractIgnoresDerived b = new DAbstractIgnoresDerived();

            if (b.Quadruple(5) != 20)
            {
                throw new Exception("Quadruple failed");
            }
        }