public MFTestResults Constructors57_Test()
 {
     //Ported from Const57.cs
     Log.Comment("Testing a 'private' constructor with a '(params int[] values)' prototype, called with 3 ints");
     if (ConstructorsTestClass57.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Exemple #2
0
            public static bool testMethod()
            {
                int intI = 1;
                int intJ = 2;
                int intK = 3;

                ConstructorsTestClass57 mc = new ConstructorsTestClass57(intI, intJ, intK);

                if (mc.intTest == 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Exemple #3
0
 public void Constructors57_Test()
 {
     //Ported from Const57.cs
     OutputHelper.WriteLine("Testing a 'private' constructor with a '(params int[] values)' prototype, called with 3 ints");
     Assert.True(ConstructorsTestClass57.testMethod());
 }
            public static bool testMethod()
            {

                int intI = 1;
                int intJ = 2;
                int intK = 3;

                ConstructorsTestClass57 mc = new ConstructorsTestClass57(intI, intJ, intK);
                if (mc.intTest == 6)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }