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

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

                ConstructorsTestClass31 Test = new ConstructorsTestClass31();

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