public void Static_Inst18_Test() { OutputHelper.WriteLine(" Section 10.2 "); OutputHelper.WriteLine(" Every instance of a class contains a separate copy "); OutputHelper.WriteLine(" of all instance fields of the class."); Assert.True(Static_InstTestClass18.testMethod()); }
public MFTestResults Static_Inst18_Test() { Log.Comment(" Section 10.2 "); Log.Comment(" Every instance of a class contains a separate copy "); Log.Comment(" of all instance fields of the class."); if (Static_InstTestClass18.testMethod()) { return(MFTestResults.Pass); } return(MFTestResults.Fail); }
public static bool testMethod() { Static_InstTestClass18 test1 = new Static_InstTestClass18(); Static_InstTestClass18 test2 = new Static_InstTestClass18(); Static_InstTestClass18 test3 = new Static_InstTestClass18(); test1.setInt(2); test2.setInt(3); test3.setInt(4); if (test1.intI != 2) { return(false); } if (test2.intI != 3) { return(false); } if (test3.intI != 4) { return(false); } return(true); }
public static bool testMethod() { Static_InstTestClass18 test1 = new Static_InstTestClass18(); Static_InstTestClass18 test2 = new Static_InstTestClass18(); Static_InstTestClass18 test3 = new Static_InstTestClass18(); test1.setInt(2); test2.setInt(3); test3.setInt(4); if (test1.intI != 2) return false; if (test2.intI != 3) return false; if (test3.intI != 4) return false; return true; }