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); }
public static bool testMethod() { ConstructorsTestClass3 test = new ConstructorsTestClass3(); if (test.intI == 2) { return(true); } else { return(false); } }
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; } }