public void Indexers12_Test() { OutputHelper.WriteLine(" Section 10.8"); OutputHelper.WriteLine(" The type on an indexer declaration specifies"); OutputHelper.WriteLine(" the element type of the indexer introduced"); OutputHelper.WriteLine(" by the declaration"); Assert.True(IndexersTestClass12.testMethod()); }
public MFTestResults Indexers12_Test() { Log.Comment(" Section 10.8"); Log.Comment(" The type on an indexer declaration specifies"); Log.Comment(" the element type of the indexer introduced"); Log.Comment(" by the declaration"); if (IndexersTestClass12.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }
public static bool testMethod() { IndexersTestClass12 test = new IndexersTestClass12(); test[1] = new IndexersTestClass12_Sub(); if (test[2].intI == 3) { return(true); } else { return(false); } }
public static bool testMethod() { IndexersTestClass12 test = new IndexersTestClass12(); test[1] = new IndexersTestClass12_Sub(); if (test[2].intI == 3) { return true; } else { return false; } }