public void TestClear() { // Length > 32 Fingerprint fp = new Fingerprint(65); for (int i = 0; i < 65; ++i) { fp.Touch(i); Assert.True(fp.Get(i)); } fp.Clear(); for (int i = 0; i < 65; ++i) { Assert.False(fp.Get(i)); } // Length <= 32 var fp2 = new Fingerprint(6); for (int i = 0; i < 6; ++i) { fp2.Touch(i); Assert.True(fp2.Get(i)); } fp.Clear(); for (int i = 0; i < 6; ++i) { Assert.False(fp.Get(i)); } }