public void Insert1000DataIndexEntriesWithDuplicateCheckingDisabled()
 {
     Delete ();
     using (var dataIndexProcessor = new DataIndexProcessor(_dataIndexPath)) {
         for (int i = 1; i < 1001; i++) {
             var dataIndex = new DataIndex (i, i, i, 50);
             dataIndexProcessor.AddIndex (dataIndex);
             #if DEBUG
             Console.WriteLine("INSERT: {0}", i);
             #endif
         }
     }
     Assert.IsTrue (true);
 }
        public void DeleteDataIndexSuccess()
        {
            Delete();
            //var deletedDataIndexProcessor = new DeletedDataIndexProcessor(_deletedDataIndexPath);
            var dataIndexProcessor = new DataIndexProcessor(_dataIndexPath);
            var dataIndex = new DataIndex(1, 1, 100, 50);
            dataIndexProcessor.AddIndex(dataIndex);
            dataIndexProcessor.RemoveIndex(1);

            bool doesExist = dataIndexProcessor.DoesIndexExist(1);
            Assert.False (doesExist);
        }
        public void Insert1000DataIndexEntriesWithDuplicateCheckingDisabledWith64KBReadCache()
        {
            Delete ();
            //var deletedDataIndexProcessor = new DeletedDataIndexProcessor(_deletedDataIndexPath);
            using (var dataIndexProcessor = new DataIndexProcessor(_dataIndexPath, DiskBufferSize.Larger, DiskBufferSize.Larger)) {

                for (int i = 1; i < 1001; i++) {
                    var dataIndex = new DataIndex (i, i, i, 50);
                    dataIndexProcessor.AddIndex (dataIndex);
                    #if DEBUG
                Console.WriteLine("INSERT: {0}", i);
                    #endif
                }
            }
            Assert.IsTrue (true);
        }
        public void AddDataIndexSuccess()
        {
            Delete();
            //var deletedDataIndexProcessor = new DeletedDataIndexProcessor(_deletedDataIndexPath);
            var dataIndexProcessor = new DataIndexProcessor(_dataIndexPath);
            var dataIndex = new DataIndex(1, 1, 100, 50);
            dataIndexProcessor.AddIndex(dataIndex);

            Assert.True (true);
        }