public void Hashcodes_of_different_instances_with_same_content_match() { var handle = new Mock <IQueueStreamHandle>().Object; var a = new QueueStreamRecord(null, handle); var b = new QueueStreamRecord(null, handle); Assert.AreEqual(a.GetHashCode(), b.GetHashCode()); }