Пример #1
0
 public void Constructors28_Test()
 {
     //Ported from Const28.cs
     OutputHelper.WriteLine("Tests if assignments in both a class' constructors are functional when a two-parametered constructor extends");
     OutputHelper.WriteLine("a one-parametered one with 'this' and calls that constructor with a static arg");
     Assert.True(ConstructorsTestClass28.testMethod());
 }
Пример #2
0
 public MFTestResults Constructors28_Test()
 {
     //Ported from Const28.cs
     Log.Comment("Tests if assignments in both a class' constructors are functional when a two-parametered constructor extends");
     Log.Comment("a one-parametered one with 'this' and calls that constructor with a static arg");
     if (ConstructorsTestClass28.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Пример #3
0
            public static bool testMethod()
            {
                ConstructorsTestClass28 Test = new ConstructorsTestClass28(3, 4);

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

                ConstructorsTestClass28 Test = new ConstructorsTestClass28(3, 4);

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