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); }
public static bool testMethod() { Static_InstTestClass14 test = new Static_InstTestClass14(); if (test.intI != 1) { return(false); } if (test.intJ() != 2) { return(false); } if (test.intK != 3) { return(false); } return(true); }
public static bool testMethod() { Static_InstTestClass14 test = new Static_InstTestClass14(); if (test.intI != 1) return false; if (test.intJ() != 2) return false; if (test.intK != 3) return false; return true; }