Пример #1
0
 public MFTestResults Constructors3_Test()
 {
     //Ported from Const3.cs
     Log.Comment("Tests if assignments in a constructor function, when constructor is protected.");
     if (ConstructorsTestClass3.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Пример #2
0
            public static bool testMethod()
            {
                ConstructorsTestClass3 test = new ConstructorsTestClass3();

                if (test.intI == 2)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Пример #3
0
 public void Constructors3_Test()
 {
     //Ported from Const3.cs
     OutputHelper.WriteLine("Tests if assignments in a constructor function, when constructor is protected.");
     Assert.True(ConstructorsTestClass3.testMethod());
 }
 public static bool testMethod()
 {
     ConstructorsTestClass3 test = new ConstructorsTestClass3();
     if (test.intI == 2)
     {
         return true;
     }
     else
     {
         return false;
     }
 }