コード例 #1
0
 public void Constructors23_Test()
 {
     //Ported from Const23.cs
     OutputHelper.WriteLine("Tests if assignments in both a class' constructors are functional when a not-parametered constructor extends");
     OutputHelper.WriteLine("a parametered one with 'this'");
     Assert.True(ConstructorsTestClass23.testMethod());
 }
コード例 #2
0
 public MFTestResults Constructors23_Test()
 {
     //Ported from Const23.cs
     Log.Comment("Tests if assignments in both a class' constructors are functional when a not-parametered constructor extends");
     Log.Comment("a parametered one with 'this'");
     if (ConstructorsTestClass23.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
コード例 #3
0
            public static bool testMethod()
            {
                ConstructorsTestClass23 Test = new ConstructorsTestClass23();

                if (Test.intI == 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
コード例 #4
0
            public static bool testMethod()
            {

                ConstructorsTestClass23 Test = new ConstructorsTestClass23();

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