Exemplo n.º 1
0
        public void op_Delete_LexiconNull()
        {
            using (var file = new TempFile())
            {
                IStoreLexicon store = new CsvLexiconStorage(file.Info);

                Assert.Throws<ArgumentNullException>(() => store.Delete(null));
            }
        }
        public void op_Delete_LexiconNull()
        {
            using (var file = new TempFile())
            {
                IStoreLexicon store = new CsvLexiconStorage(file.Info);

                Assert.Throws <ArgumentNullException>(() => store.Delete(null));
            }
        }
Exemplo n.º 3
0
        public void op_Delete_Lexicon()
        {
            using (var file = new TempFile())
            {
                IStoreLexicon store = new CsvLexiconStorage(file.Info);
                store.Delete(new Lexicon(NormalityComparer.Ordinal));

                file.Info.Refresh();
                Assert.False(file.Info.Exists);
            }
        }
        public void op_Delete_Lexicon()
        {
            using (var file = new TempFile())
            {
                IStoreLexicon store = new CsvLexiconStorage(file.Info);
                store.Delete(new Lexicon(NormalityComparer.Ordinal));

                file.Info.Refresh();
                Assert.False(file.Info.Exists);
            }
        }