public void Const1_Test()
 {
     //Ported from const1.cs
     OutputHelper.WriteLine("Section 10.3");
     OutputHelper.WriteLine("A constant-declaration may include a set of attributes,");
     OutputHelper.WriteLine("a new modifier, and one of four access modifiers.  The");
     OutputHelper.WriteLine("attributes and modifiers apply to all of the members ");
     OutputHelper.WriteLine("declared by the constant declaration.");
     Assert.True(ConstTestClass1.test());
 }
예제 #2
0
 public MFTestResults Const1_Test()
 {
     //Ported from const1.cs
     Log.Comment("Section 10.3");
     Log.Comment("A constant-declaration may include a set of attributes,");
     Log.Comment("a new modifier, and one of four access modifiers.  The");
     Log.Comment("attributes and modifiers apply to all of the members ");
     Log.Comment("declared by the constant declaration.");
     if (ConstTestClass1.test())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }