public virtual void TestCopyConstructor() { IIndex <string> test = new HashIndex <string>(); test.Add("Beauty"); test.Add("And"); test.Add("The"); test.Add("Beast"); HashIndex <string> copy = new HashIndex <string>(test); NUnit.Framework.Assert.AreEqual(test, copy); }
protected virtual void SetUp() { underlying = new HashIndex <string>(); underlying.Add("foo0"); underlying.Add("foo1"); underlying.Add("foo2"); underlying.Add("foo3"); underlying.Add("foo4"); NUnit.Framework.Assert.AreEqual(5, underlying.Count); spillover = new DeltaIndex <string>(underlying); spillover.Add("foo1"); spillover.Add("foo5"); spillover.Add("foo6"); }