public void Synchronized() { Bug78430 s = new Bug78430(); s.Initialize(null, new SettingsPropertyCollection(), new SettingsProviderCollection()); SettingsBase sb = SettingsBase.Synchronized(s); Assert.IsTrue(sb.IsSynchronized, "#1"); Assert.IsTrue(sb is Bug78430, "#2"); // these checks are so cosmetic, actually not // worthy of testing. Assert.IsTrue(Object.ReferenceEquals(s, sb), "#3"); Assert.IsFalse(sb.Properties.IsSynchronized, "#4"); }
public void Synchronized () { Bug78430 s = new Bug78430 (); s.Initialize (null, new SettingsPropertyCollection (), new SettingsProviderCollection ()); SettingsBase sb = SettingsBase.Synchronized (s); Assert.IsTrue (sb.IsSynchronized, "#1"); Assert.IsTrue (sb is Bug78430, "#2"); // these checks are so cosmetic, actually not // worthy of testing. Assert.IsTrue (Object.ReferenceEquals (s, sb), "#3"); Assert.IsFalse (sb.Properties.IsSynchronized, "#4"); }