public void Fields15_testMethod() { OutputHelper.WriteLine(" Section 10.4"); OutputHelper.WriteLine(" A static field comes into existence when the "); OutputHelper.WriteLine(" type in which it is declared is loaded, and "); OutputHelper.WriteLine(" ceases to exist when the type in which it "); OutputHelper.WriteLine(" is declared in unloaded."); Assert.True(FieldsTestClass15.testMethod()); }
public MFTestResults Fields15_testMethod() { Log.Comment(" Section 10.4"); Log.Comment(" A static field comes into existence when the "); Log.Comment(" type in which it is declared is loaded, and "); Log.Comment(" ceases to exist when the type in which it "); Log.Comment(" is declared in unloaded."); if (FieldsTestClass15.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }