public void Const26_Test()
 {
     //Ported from const26.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(ConstTestClass26.test());
 }
Exemple #2
0
 public MFTestResults Const26_Test()
 {
     //Ported from const26.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 (ConstTestClass26.test())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }