public void Constructors45_Test() { //Ported from Const45.cs OutputHelper.WriteLine("Section 10.11."); OutputHelper.WriteLine("It is possible to construct circular dependencies that"); OutputHelper.WriteLine("allow static fields with variable initializers to be"); OutputHelper.WriteLine("observed in their default value state."); Assert.True(ConstructorsTestClass45.testMethod()); }
public MFTestResults Constructors45_Test() { //Ported from Const45.cs Log.Comment("Section 10.11."); Log.Comment("It is possible to construct circular dependencies that"); Log.Comment("allow static fields with variable initializers to be"); Log.Comment("observed in their default value state."); if (ConstructorsTestClass45.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }