public void Fields4_testMethod()
 {
     OutputHelper.WriteLine(" Section 10.4");
     OutputHelper.WriteLine(" A field-declaration may include set of attributes,");
     OutputHelper.WriteLine(" a new modifier, one of four access modifiers, a");
     OutputHelper.WriteLine(" static modifier, and a readonly modifier.  The ");
     OutputHelper.WriteLine(" attributes and modifiers apply to all of the ");
     OutputHelper.WriteLine(" members declared by the field-declaration.");
     Assert.True(FieldsTestClass4.testMethod());
 }
            public static bool testMethod()
            {
                FieldsTestClass4 test = new FieldsTestClass4();

                if (test.intI == 2)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Ejemplo n.º 3
0
 public MFTestResults Fields4_testMethod()
 {
     Log.Comment(" Section 10.4");
     Log.Comment(" A field-declaration may include set of attributes,");
     Log.Comment(" a new modifier, one of four access modifiers, a");
     Log.Comment(" static modifier, and a readonly modifier.  The ");
     Log.Comment(" attributes and modifiers apply to all of the ");
     Log.Comment(" members declared by the field-declaration.");
     if (FieldsTestClass4.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
Ejemplo n.º 4
0
            public static bool testMethod()
            {

                FieldsTestClass4 test = new FieldsTestClass4();
                if (test.intI == 2)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }