public void DisposeTest() { _hashSet.Dispose(); Assert.ThrowsException <ObjectDisposedException>(() => { AddHashPairTestCore(); }); }