public void Indexers39_Test() { OutputHelper.WriteLine(" Section 10.8"); OutputHelper.WriteLine(" With these differences in mind, all rules"); OutputHelper.WriteLine(" defined in 10.6.2 and 10.6.3 apply to indexer"); OutputHelper.WriteLine(" accessors as well as property accessors."); Assert.True(IndexersTestClass39.testMethod()); }
public MFTestResults Indexers39_Test() { Log.Comment(" Section 10.8"); Log.Comment(" With these differences in mind, all rules"); Log.Comment(" defined in 10.6.2 and 10.6.3 apply to indexer"); Log.Comment(" accessors as well as property accessors."); if (IndexersTestClass39.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }
public static bool testMethod() { IndexersTestClass39_Base test = new IndexersTestClass39(); test[2] = 2; if (test[2] == 6) { return(true); } else { return(false); } }
public static bool testMethod() { IndexersTestClass39_Base test = new IndexersTestClass39(); test[2] = 2; if (test[2] == 6) { return true; } else { return false; } }