public void FindHashPairsTest() { AddHashPairTest(); Assert.ThrowsException <InvalidOperationException>(() => { FindHashPairsTestCore(); }); _hashSet.BeginOpen(); FindHashPairsTestCore(); _hashSet.EndOpen(); Assert.ThrowsException <InvalidOperationException>(() => { FindHashPairsTestCore(); }); Assert.ThrowsException <InvalidOperationException>(() => { Assert.IsTrue(_hashSet.ContainsValue(TestMD5)); }); _hashSet.BeginOpen(); Assert.IsTrue(_hashSet.ContainsValue(TestMD5)); _hashSet.EndOpen(); }