public MFTestResults Constructors21_Test()
 {
     //Ported from Const21.cs
     Log.Comment("Tests if assignments in a constructor and its base, and its base's base are all functional");
     if (ConstructorsTestClass21.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Beispiel #2
0
            public static bool testMethod()
            {
                ConstructorsTestClass21 test = new ConstructorsTestClass21();

                if (test.intI == 8)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Beispiel #3
0
 public void Constructors21_Test()
 {
     //Ported from Const21.cs
     OutputHelper.WriteLine("Tests if assignments in a constructor and its base, and its base's base are all functional");
     Assert.True(ConstructorsTestClass21.testMethod());
 }
 public static bool testMethod()
 {
     ConstructorsTestClass21 test = new ConstructorsTestClass21();
     if (test.intI == 8)
     {
         return true;
     }
     else
     {
         return false;
     }
 }