public void Constructors31_Test() { //Ported from Const31.cs OutputHelper.WriteLine("Tests if assignments in both a class' constructors are functional when a not-parametered constructor extends"); OutputHelper.WriteLine("a two-parametered one with 'this'"); Assert.True(ConstructorsTestClass31.testMethod()); }
public MFTestResults Constructors31_Test() { //Ported from Const31.cs Log.Comment("Tests if assignments in both a class' constructors are functional when a not-parametered constructor extends"); Log.Comment("a two-parametered one with 'this'"); if (ConstructorsTestClass31.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }
public static bool testMethod() { ConstructorsTestClass31 Test = new ConstructorsTestClass31(); if (Test.intI == 14) { return(true); } else { return(false); } }
public static bool testMethod() { ConstructorsTestClass31 Test = new ConstructorsTestClass31(); if (Test.intI == 14) { return true; } else { return false; } }