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