public void Const25_Test() { //Ported from const25.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(ConstTestClass25.test()); }
public MFTestResults Const25_Test() { //Ported from const25.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 (ConstTestClass25.test()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }