예제 #1
0
        public void UnusableSyncLockTest()
        {
            UnimplementedList <int> list = new UnimplementedList <int> ();
            Collection <int>        c    = new Collection <int> (list);

            object cLock = ((ICollection)c).SyncRoot;

            Assert.IsNotNull(cLock);
        }
예제 #2
0
        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)));
        }