コード例 #1
0
 public void Indexers14_Test()
 {
     OutputHelper.WriteLine(" Unless the indexer is an explicit interface");
     OutputHelper.WriteLine(" member implementation, the type is followed");
     OutputHelper.WriteLine(" by the keyword this.  For an explicit ");
     OutputHelper.WriteLine(" interface member implementation, the type is ");
     OutputHelper.WriteLine(" followed by an interface-type, a . and the ");
     OutputHelper.WriteLine(" keyword this.");
     OutputHelper.WriteLine("This is currently an expected fail, but is resolved in 3.0 see Bug  16341 for details");
     Assert.True(IndexersTestClass14.testMethod());
 }
コード例 #2
0
 public MFTestResults Indexers14_Test()
 {
     Log.Comment(" Unless the indexer is an explicit interface");
     Log.Comment(" member implementation, the type is followed");
     Log.Comment(" by the keyword this.  For an explicit ");
     Log.Comment(" interface member implementation, the type is ");
     Log.Comment(" followed by an interface-type, a . and the ");
     Log.Comment(" keyword this.");
     Log.Comment("This is currently an expected fail, but is resolved in 3.0 see Bug  16341 for details");
     if (IndexersTestClass14.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
コード例 #3
0
            public static bool testMethod()
            {
                IndexersTestClass14      test1 = new IndexersTestClass14();
                IndexersTestClass14_Base test2 = new IndexersTestClass14();

                test1[1] = 2;
                test2[2] = 2;
                if ((test1[1] == 2) && (test2[2] == 4))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
コード例 #4
0
 public static bool testMethod()
 {
     IndexersTestClass14 test1 = new IndexersTestClass14();
     IndexersTestClass14_Base test2 = new IndexersTestClass14();
     test1[1] = 2;
     test2[2] = 2;
     if ((test1[1] == 2) && (test2[2] == 4))
     {
         return true;
     }
     else
     {
         return false;
     }
 }