public void TestGetAll()
        {
            var index = new DatabaseIndex <TestEntity>(CreateList());
            var list  = index.GetAll();

            Assert.AreEqual(5, list.Count);
            for (int i = 0; i < 5; i++)
            {
                AssertObject(list[i], i);
            }
        }
        public void TestRemoveObject()
        {
            var index = new DatabaseIndex <TestEntity>(CreateList());

            index.Remove(CreateObject(0));
            var list = index.GetAll();

            Assert.AreEqual(4, list.Count);
            for (int i = 0; i < 4; i++)
            {
                AssertObject(list[i], i + 1);
            }
        }