Ejemplo n.º 1
0
        public void Constructors25_Test()
        {
            //Ported from Const25.cs

            OutputHelper.WriteLine("Tests if assignments in all a class' constructors are functional when a parametered one extends a");
            OutputHelper.WriteLine("not-parametered one, which in turn extends the class' base class constructor");
            Assert.True(ConstructorsTestClass25.testMethod());
        }
Ejemplo n.º 2
0
        public MFTestResults Constructors25_Test()
        {
            //Ported from Const25.cs

            Log.Comment("Tests if assignments in all a class' constructors are functional when a parametered one extends a");
            Log.Comment("not-parametered one, which in turn extends the class' base class constructor");
            if (ConstructorsTestClass25.testMethod())
            {
                return(MFTestResults.Pass);
            }
            return(MFTestResults.Fail);
        }
Ejemplo n.º 3
0
            public static bool testMethod()
            {
                ConstructorsTestClass25 Test = new ConstructorsTestClass25(3);

                if (Test.intI == 7)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            public static bool testMethod()
            {

                ConstructorsTestClass25 Test = new ConstructorsTestClass25(3);

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