예제 #1
0
        public void TestFingerprinterBitSetSize()
        {
            Fingerprinter fingerprinter = new Fingerprinter(1024, 7);

            Assert.IsNotNull(fingerprinter);
            var      mol = TestMoleculeFactory.MakeIndole();
            BitArray bs  = fingerprinter.GetBitFingerprint(mol).AsBitSet();

            Assert.AreEqual(994, BitArrays.GetLength(bs)); // highest set bit
            Assert.AreEqual(1024, bs.Count);               // actual bit set size
        }