public void can_close_and_reopen() { _filter.Add("hello"); _filter.Dispose(); using var newFilter = new MemoryMappedFileStreamBloomFilter(_path, create: false, MemoryMappedFileBloomFilter.MinSizeKB * 1000, hasher: null); Assert.IsTrue(newFilter.MightContain("hello")); }
public void Teardown() => _filter?.Dispose();