Ejemplo n.º 1
0
        public void GetAllEntriesSortedByHeadWord_DeleteAllItemsAfterFirstCall_EntryIsDeletedInResultSet()
        {
            LexEntry entrytoBeDeleted = CreateEntryWithLexicalFormBeforeFirstQuery("de", "word 0");

            _repository.GetAllEntriesSortedByHeadword(WritingSystemDefinition.Parse("de"));

            _repository.DeleteAllItems();

            ResultSet <LexEntry> results = _repository.GetAllEntriesSortedByHeadword(WritingSystemDefinition.Parse("de"));

            Assert.AreEqual(0, results.Count);
        }