public void FindValueTest() { string encodedData = tree.Compress(COMPRESSION_STR); Assert.IsFalse(tree.IsNull, "should not be null"); Assert.AreNotEqual(COMPRESSION_STR, encodedData, "string did not encode"); for (int index = 0; index < ENCODE_LIST.Length; index++) { Assert.IsTrue(tree.Contains(ENCODE_LIST[index]), "should be found in the tree"); Assert.AreEqual(ENCODE_FREQ[index], tree.Find(Encoding.ASCII.GetBytes(ENCODE_LIST[index])[0]), "Incorrect freq Returned"); } }