public bool RemoveTest() { BlockingCollection<Security> dataQueue = new BlockingCollection<Security>(); var sec1 = new Security("Aggregator", "AAA", 6.32D); var sec2 = new Security("Aggregator", "BBB", 6.22D); var sec3 = new Security("Aggregator", "CCC", 6.12D); dataQueue.Add(sec1); dataQueue.Add(sec2); dataQueue.Add(sec3); Assert.IsTrue(dataQueue.Remove<Security>(sec1)); Assert.IsTrue(dataQueue.Count == 2); var itm = dataQueue.FirstOrDefault(x => x.Value == sec1.Value); return (null == itm); }