Пример #1
0
 public MFTestResults Constructors52_Test()
 {
     Log.Comment("Testing a constructor with a '(params int[] values)' prototype, called with 3 ints");
     //Ported from Const52.cs
     if (ConstructorsTestClass52.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Пример #2
0
            public static bool testMethod()
            {
                int intI = 1;
                int intJ = 2;
                int intK = 3;

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

                if (mc.intTest == 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Пример #3
0
 public void Constructors52_Test()
 {
     OutputHelper.WriteLine("Testing a constructor with a '(params int[] values)' prototype, called with 3 ints");
     //Ported from Const52.cs
     Assert.True(ConstructorsTestClass52.testMethod());
 }
            public static bool testMethod()
            {

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

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