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

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

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

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

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

                if (mc.intTest == 6)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }