public void GetEnumerator_Untyped_Returns_Enumerator() { var collection = new BlockingProducerConsumer <object>(); var result = ((IEnumerable)collection).GetEnumerator(); Assert.IsInstanceOfType(result, typeof(IEnumerator <object>)); }
public void CopyTo_Array_Throws_NotImplemented_Exception() { var collection = new BlockingProducerConsumer <object>(); var array = (Array) new object[0]; collection.CopyTo(array, 0); }
public void IsSyncronized_Returns_True() { var collection = new BlockingProducerConsumer <object>(); var result = collection.IsSynchronized; Assert.IsTrue(result); }
public void Count_Returns_BlockingCollection_Count() { var collection = new BlockingProducerConsumer <object>(); var result = collection.Count; Assert.AreEqual(0, result); }
public void SyncRoot_Throws_NotImplemented_Exception() { var collection = new BlockingProducerConsumer <object>(); var result = collection.SyncRoot; }