public void Const27_Test()
 {
     //Ported from const27.cs
     OutputHelper.WriteLine("Section 10.3");
     OutputHelper.WriteLine("A constant itself can participate in a constant-expression.");
     OutputHelper.WriteLine("Thus, a constant may be used in any construct that requires");
     OutputHelper.WriteLine("a constant-expression.  Examples of such constructs include");
     OutputHelper.WriteLine("case labels, goto case statements, enum member declarations,");
     OutputHelper.WriteLine("attributes, and other constant declarations.");
     Assert.True(ConstTestClass27.test());
 }
Example #2
0
 public MFTestResults Const27_Test()
 {
     //Ported from const27.cs
     Log.Comment("Section 10.3");
     Log.Comment("A constant itself can participate in a constant-expression.");
     Log.Comment("Thus, a constant may be used in any construct that requires");
     Log.Comment("a constant-expression.  Examples of such constructs include");
     Log.Comment("case labels, goto case statements, enum member declarations,");
     Log.Comment("attributes, and other constant declarations.");
     if (ConstTestClass27.test())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }