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