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