public void Fields13_testMethod()
 {
     OutputHelper.WriteLine(" Section 10.4");
     OutputHelper.WriteLine(" A field-declaration may include set of attributes,");
     OutputHelper.WriteLine(" a new modifier, one of four access modifiers, a");
     OutputHelper.WriteLine(" static modifier, and a readonly modifier.  The ");
     OutputHelper.WriteLine(" attributes and modifiers apply to all of the ");
     OutputHelper.WriteLine(" members declared by the field-declaration.");
     OutputHelper.WriteLine("");
     OutputHelper.WriteLine(" A field declaration that declares multiple fields");
     OutputHelper.WriteLine(" is equivalent to multiple declarations of single ");
     OutputHelper.WriteLine(" fields with the same attributes, modifiers, and type.");
     Assert.True(FieldsTestClass13.testMethod());
 }
示例#2
0
 public MFTestResults Fields13_testMethod()
 {
     Log.Comment(" Section 10.4");
     Log.Comment(" A field-declaration may include set of attributes,");
     Log.Comment(" a new modifier, one of four access modifiers, a");
     Log.Comment(" static modifier, and a readonly modifier.  The ");
     Log.Comment(" attributes and modifiers apply to all of the ");
     Log.Comment(" members declared by the field-declaration.");
     Log.Comment("");
     Log.Comment(" A field declaration that declares multiple fields");
     Log.Comment(" is equivalent to multiple declarations of single ");
     Log.Comment(" fields with the same attributes, modifiers, and type.");
     if (FieldsTestClass13.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }