public void Static_Inst14_Test() { OutputHelper.WriteLine(" Section 10.2 "); OutputHelper.WriteLine(" When an instance member is referenced in a member-access"); OutputHelper.WriteLine(" of the form E.M, E must denote an instance. It is an error "); OutputHelper.WriteLine(" for E to denote a type."); Assert.True(Static_InstTestClass14.testMethod()); }
public MFTestResults Static_Inst14_Test() { Log.Comment(" Section 10.2 "); Log.Comment(" When an instance member is referenced in a member-access"); Log.Comment(" of the form E.M, E must denote an instance. It is an error "); Log.Comment(" for E to denote a type."); if (Static_InstTestClass14.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }