Esempio n. 1
0
        public void Constructors55_Test()
        {
            //Ported from Const55.cs

            OutputHelper.WriteLine("Testing a constructor with a '(params int[] values)' prototype, called with 3 ints");
            OutputHelper.WriteLine(" from its derived class, and both constructors are 'protected internal'");
            Assert.True(ConstructorsTestClass55.testMethod());
        }
        public MFTestResults Constructors55_Test()
        {
            //Ported from Const55.cs

            Log.Comment("Testing a constructor with a '(params int[] values)' prototype, called with 3 ints");
            Log.Comment(" from its derived class, and both constructors are 'protected internal'");
            if (ConstructorsTestClass55.testMethod())
            {
                return(MFTestResults.Pass);
            }
            return(MFTestResults.Fail);
        }
Esempio n. 3
0
            public static bool testMethod()
            {
                int intI = 1;
                int intJ = 2;
                int intK = 3;

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

                if (mc.intTest == 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            public static bool testMethod()
            {

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

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

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