예제 #1
0
 public MFTestResults Constructors20_Test()
 {
     //Ported from Const20.cs
     Log.Comment("Tests if assignments in a constructor and its base are both functional");
     if (ConstructorsTestClass20.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
예제 #2
0
            public static bool testMethod()
            {
                ConstructorsTestClass20 Test = new ConstructorsTestClass20();

                if (Test.intI == 14)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
예제 #3
0
 public void Constructors20_Test()
 {
     //Ported from Const20.cs
     OutputHelper.WriteLine("Tests if assignments in a constructor and its base are both functional");
     Assert.True(ConstructorsTestClass20.testMethod());
 }
            public static bool testMethod()
            {

                ConstructorsTestClass20 Test = new ConstructorsTestClass20();

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