public void Indexers1_Test()
 {
     OutputHelper.WriteLine(" Section 10.8");
     OutputHelper.WriteLine(" An indexer-declaration may include set of");
     OutputHelper.WriteLine(" attributes, a new modifier, and a valid combination");
     OutputHelper.WriteLine(" of the four access modifiers.");
     Assert.True(IndexersTestClass1.testMethod());
 }
Ejemplo n.º 2
0
 public MFTestResults Indexers1_Test()
 {
     Log.Comment(" Section 10.8");
     Log.Comment(" An indexer-declaration may include set of");
     Log.Comment(" attributes, a new modifier, and a valid combination");
     Log.Comment(" of the four access modifiers.");
     if (IndexersTestClass1.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Ejemplo n.º 3
0
 public static bool testMethod()
 {
     try
     {
         IndexersTestClass1 test = new IndexersTestClass1();
         test[1] = 1;
         if (test[2] == 4)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch { return(false); }
 }
Ejemplo n.º 4
0
 public static bool testMethod()
 {
     try
     {
         IndexersTestClass1 test = new IndexersTestClass1();
         test[1] = 1;
         if (test[2] == 4)
         {
             return true;
         }
         else
         {
             return false;
         }
     }
     catch { return false; }
 }