Пример #1
0
 public MFTestResults Constructors24_Test()
 {
     //Ported from Const24.cs
     Log.Comment("Tests if assignments in all a class' constructors are functional in a chain of extension using 'this'");
     if (ConstructorsTestClass24.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Пример #2
0
            public static bool testMethod()
            {
                ConstructorsTestClass24 Test = new ConstructorsTestClass24(3, 4);

                if (Test.intI == 36)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Пример #3
0
 public void Constructors24_Test()
 {
     //Ported from Const24.cs
     OutputHelper.WriteLine("Tests if assignments in all a class' constructors are functional in a chain of extension using 'this'");
     Assert.True(ConstructorsTestClass24.testMethod());
 }
            public static bool testMethod()
            {

                ConstructorsTestClass24 Test = new ConstructorsTestClass24(3, 4);

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