Ejemplo n.º 1
0
        public void Constructors10_Test()
        {
            //Ported from Const10.cs

            OutputHelper.WriteLine("Tests if assignments in a constructor function, when constructor is called with one parameter");
            OutputHelper.WriteLine("and is overloaded with an un-called zero parameter version");
            Assert.True(ConstructorsTestClass10.testMethod());
        }
Ejemplo n.º 2
0
        public MFTestResults Constructors10_Test()
        {
            //Ported from Const10.cs

            Log.Comment("Tests if assignments in a constructor function, when constructor is called with one parameter");
            Log.Comment("and is overloaded with an un-called zero parameter version");
            if (ConstructorsTestClass10.testMethod())
            {
                return(MFTestResults.Pass);
            }
            return(MFTestResults.Fail);
        }
Ejemplo n.º 3
0
            public static bool testMethod()
            {
                ConstructorsTestClass10 test = new ConstructorsTestClass10(3); //calling constructor with parameter

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

                ConstructorsTestClass10 test = new ConstructorsTestClass10(3); //calling constructor with parameter
                if (test.intI == 3)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }