Beispiel #1
0
 public MFTestResults Indexers52_Test()
 {
     Log.Comment("Testing multiple comma seperated indexers with an overridden public virtual get and set");
     Log.Comment("This test is expected to fail");
     if (IndexersTestClass52.testMethod())
     {
         return(MFTestResults.Fail);
     }
     return(MFTestResults.Pass);
 }
Beispiel #2
0
            public static bool testMethod()
            {
                IndexersTestClass52_Base mc = new IndexersTestClass52();

                mc[1, 2, 3] = 0;
                if (mc[1, 2, 3] == 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
 public static bool testMethod()
 {
     IndexersTestClass52_Base mc = new IndexersTestClass52();
     mc[1, 2, 3] = 0;
     if (mc[1, 2, 3] == 6)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
 public void Indexers52_Test()
 {
     OutputHelper.WriteLine("Testing multiple comma seperated indexers with an overridden public virtual get and set");
     OutputHelper.WriteLine("This test is expected to fail");
     Assert.False(IndexersTestClass52.testMethod());
 }