public void AddDataTest() { Bloom MyBloom = new Bloom(); string data = "Hello Bloom Filter"; MyBloom.AddData(data); Assert.AreEqual("success", MyBloom.AddData(data)); }
public void Test() { var myBloom = new Bloom(); var data = "Hello Bloom Filter"; myBloom.AddData(data); var data2 = "Hello Bloom Filter"; Assert.AreEqual(true, myBloom.LookUp(data2)); myBloom = new Bloom(); myBloom.AddData("apple"); myBloom.AddData("orange"); myBloom.AddData("banana"); Assert.AreEqual(true, myBloom.LookUp("banana")); }
public void LookUpTest() { Bloom MyBloom = new Bloom(); string data = "Hello Bloom Filter"; MyBloom.AddData(data); string data2 = "Hello Bloom Filter"; Assert.AreEqual(true, MyBloom.LookUp(data2)); }