예제 #1
0
        public void Constructors32_Test()
        {
            //Ported from Const32.cs

            OutputHelper.WriteLine("Tests if assignments in both a class' constructors are functional when a parametered constructor extends");
            OutputHelper.WriteLine("a not-parametered one that is private with 'this'");
            Assert.True(ConstructorsTestClass32.testMethod());
        }
예제 #2
0
        public MFTestResults Constructors32_Test()
        {
            //Ported from Const32.cs

            Log.Comment("Tests if assignments in both a class' constructors are functional when a parametered constructor extends");
            Log.Comment("a not-parametered one that is private with 'this'");
            if (ConstructorsTestClass32.testMethod())
            {
                return(MFTestResults.Pass);
            }
            return(MFTestResults.Fail);
        }
예제 #3
0
            public static bool testMethod()
            {
                ConstructorsTestClass32 Test = new ConstructorsTestClass32(2);

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

                ConstructorsTestClass32 Test = new ConstructorsTestClass32(2);

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