public void UnusableSyncLockTest() { UnimplementedList <int> list = new UnimplementedList <int> (); Collection <int> c = new Collection <int> (list); object cLock = ((ICollection)c).SyncRoot; Assert.IsNotNull(cLock); }
public void UnusableSyncLockTest() { UnimplementedList <int> list = new UnimplementedList <int> (); Collection <int> c = new Collection <int> (list); object cLock = ((ICollection)c).SyncRoot; Assert.IsNotNull(cLock); Assert.IsTrue(cLock.GetType().Equals(typeof(object))); }