public void Indexers23_Test() { OutputHelper.WriteLine(" Section 10.8"); OutputHelper.WriteLine(" The type of an indexer declaration and each "); OutputHelper.WriteLine(" of the types referenced in the formal-index"); OutputHelper.WriteLine(" parameter list must be at least as accessible"); OutputHelper.WriteLine(" as the indexer itself."); Assert.True(IndexersTestClass23.testMethod()); }
public MFTestResults Indexers23_Test() { Log.Comment(" Section 10.8"); Log.Comment(" The type of an indexer declaration and each "); Log.Comment(" of the types referenced in the formal-index"); Log.Comment(" parameter list must be at least as accessible"); Log.Comment(" as the indexer itself."); if (IndexersTestClass23.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }
public static bool testMethod() { IndexersTestClass23 test = new IndexersTestClass23(); TestClass TC = new TestClass(); if (test[TC] == TC) { return(true); } else { return(false); } }
public static bool testMethod() { IndexersTestClass23 test = new IndexersTestClass23(); TestClass TC = new TestClass(); if (test[TC] == TC) { return true; } else { return false; } }