public void Add_WithCounterAtMaxValue_ShouldRemainConstant() { var filter = new CountingBloomFilter <int>(50, 0.01); while (filter.CounterAt(42) < byte.MaxValue) { filter.Add(42); } filter.Add(42); // one additional add to attempt to roll over byte.maxvalue Assert.True(filter.Contains(42)); }