コード例 #1
0
 public void Indexers43_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(IndexersTestClass43.testMethod());
 }
コード例 #2
0
 public MFTestResults Indexers43_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 (IndexersTestClass43.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
コード例 #3
0
            public static bool testMethod()
            {
                IndexersTestClass43_Base test = new IndexersTestClass43();

                test[2] = 2;
                if (test[2] == 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
コード例 #4
0
 public static bool testMethod()
 {
     IndexersTestClass43_Base test = new IndexersTestClass43();
     test[2] = 2;
     if (test[2] == 6)
     {
         return true;
     }
     else
     {
         return false;
     }
 }