Пример #1
0
 public void Constructors45_Test()
 {
     //Ported from Const45.cs
     OutputHelper.WriteLine("Section 10.11.");
     OutputHelper.WriteLine("It is possible to construct circular dependencies that");
     OutputHelper.WriteLine("allow static fields with variable initializers to be");
     OutputHelper.WriteLine("observed in their default value state.");
     Assert.True(ConstructorsTestClass45.testMethod());
 }
Пример #2
0
                public static bool testMethod()
                {
                    ConstructorsTestClass45 test = new ConstructorsTestClass45();

                    if (test.intI == 1)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }
Пример #3
0
 public MFTestResults Constructors45_Test()
 {
     //Ported from Const45.cs
     Log.Comment("Section 10.11.");
     Log.Comment("It is possible to construct circular dependencies that");
     Log.Comment("allow static fields with variable initializers to be");
     Log.Comment("observed in their default value state.");
     if (ConstructorsTestClass45.testMethod())
     {
         return(MFTestResults.Pass);
     }
     return(MFTestResults.Fail);
 }
 public static bool testMethod()
 {
     ConstructorsTestClass45 test = new ConstructorsTestClass45();
     if (test.intI == 1)
     {
         return true;
     }
     else
     {
         return false;
     }
 }