Ejemplo n.º 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);
        }
Ejemplo n.º 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)));
        }