Ejemplo n.º 1
0
 public void Constructors26_Test()
 {
     //Ported from Const26.cs
     OutputHelper.WriteLine("Tests if assignments in all a class' constructors are functional when a not-parametered one extends a");
     OutputHelper.WriteLine("not-parametered one in its base class, which in turn extends a parametered one in the base class");
     Assert.True(ConstructorsTestClass26.testMethod());
 }
Ejemplo n.º 2
0
 public MFTestResults Constructors26_Test()
 {
     //Ported from Const26.cs
     Log.Comment("Tests if assignments in all a class' constructors are functional when a not-parametered one extends a");
     Log.Comment("not-parametered one in its base class, which in turn extends a parametered one in the base class");
     if (ConstructorsTestClass26.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Ejemplo n.º 3
0
            public static bool testMethod()
            {
                ConstructorsTestClass26 Test = new ConstructorsTestClass26();

                if (Test.intI == 12)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            public static bool testMethod()
            {

                ConstructorsTestClass26 Test = new ConstructorsTestClass26();

                if (Test.intI == 12)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }