コード例 #1
0
        public void NewBloom_Should_Use_Copy()
        {
            var data = new byte[256];

            var bloom = new Bloom(data);

            // Change original data.
            data[1] = 0xFF;

            var bloom2 = new Bloom(data);

            // If they were not using a copy, this would return true.
            Assert.False(bloom.Equals(bloom2));
        }