예제 #1
0
        public void GetEnumerator_Untyped_Returns_Enumerator()
        {
            var collection = new BlockingProducerConsumer <object>();
            var result     = ((IEnumerable)collection).GetEnumerator();

            Assert.IsInstanceOfType(result, typeof(IEnumerator <object>));
        }
예제 #2
0
        public void CopyTo_Array_Throws_NotImplemented_Exception()
        {
            var collection = new BlockingProducerConsumer <object>();
            var array      = (Array) new object[0];

            collection.CopyTo(array, 0);
        }
예제 #3
0
        public void IsSyncronized_Returns_True()
        {
            var collection = new BlockingProducerConsumer <object>();
            var result     = collection.IsSynchronized;

            Assert.IsTrue(result);
        }
예제 #4
0
        public void Count_Returns_BlockingCollection_Count()
        {
            var collection = new BlockingProducerConsumer <object>();
            var result     = collection.Count;

            Assert.AreEqual(0, result);
        }
예제 #5
0
 public void SyncRoot_Throws_NotImplemented_Exception()
 {
     var collection = new BlockingProducerConsumer <object>();
     var result     = collection.SyncRoot;
 }