Пример #1
0
        public async Task DeleteDatabase()
        {
            try
            {
                await DatabaseService.DeleteDatabase(IndexModel.DatabaseName);
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }

            var state = Directory.Exists(Path + IndexModel.DatabaseName);

            Assert.IsFalse(state);
        }
Пример #2
0
        public async Task DeleteIndex()
        {
            try
            {
                await DatabaseService.DeleteIndex(IndexModel);
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }

            var state = File.Exists(Path + IndexModel + ".col");

            Assert.IsFalse(state);
            state = File.Exists(Path + IndexModel + ".pidx");
            Assert.IsFalse(state);
            state = File.Exists(Path + IndexModel + ".sidx");
            Assert.IsFalse(state);
        }