public void Static_Inst01_Test()
 {
     OutputHelper.WriteLine(" Section 10.2 ");
     OutputHelper.WriteLine(" When a static member is referenced in a member-access");
     OutputHelper.WriteLine(" of the form E.M, E must denote a type. It is an error for");
     OutputHelper.WriteLine(" E to denote an instance.");
     Assert.True(Static_InstTestClass01.testMethod());
 }
 public MFTestResults Static_Inst01_Test()
 {
     Log.Comment(" Section 10.2 ");
     Log.Comment(" When a static member is referenced in a member-access");
     Log.Comment(" of the form E.M, E must denote a type. It is an error for");
     Log.Comment(" E to denote an instance.");
     if (Static_InstTestClass01.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
 public static bool testMethod()
 {
     if (Static_InstTestClass01.intI != 1)
     {
         return(false);
     }
     if (Static_InstTestClass01.intJ() != 2)
     {
         return(false);
     }
     if (Static_InstTestClass01.intK != 3)
     {
         return(false);
     }
     if (Static_InstTestClass01.intL != 4)
     {
         return(false);
     }
     if (new Static_InstTestClass01.MyInner().intM != 5)
     {
         return(false);
     }
     return(true);
 }