public MFTestResults Constructors6_Test() { //Ported from Const6.cs Log.Comment("Tests if assignments in a constructor function, when constructor is private."); if (ConstructorsTestClass6.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }
public static bool testMethod() { ConstructorsTestClass6 test = new ConstructorsTestClass6(); if (test.intI == 2) { return(true); } else { return(false); } }
public void Constructors6_Test() { //Ported from Const6.cs OutputHelper.WriteLine("Tests if assignments in a constructor function, when constructor is private."); Assert.True(ConstructorsTestClass6.testMethod()); }
public static bool testMethod() { ConstructorsTestClass6 test = new ConstructorsTestClass6(); if (test.intI == 2) { return true; } else { return false; } }