public void Can_Delete_All_Words_From_Collection() { // Get a CollectionId to remove from var collectionId = 1; // Instantiate Word Repo var repo = new WordRepository(_context); // Get a count of words in Collection var originalCount = repo.GetByCollectionId(collectionId).Count; // Get the words from the Collection var words = repo.GetByCollectionId(collectionId); // Delete all words repo.DeleteAllWordsInCollection(words); // Get new count var newCount = repo.GetByCollectionId(collectionId).Count; // New count should be -1 original Assert.True(newCount == originalCount - 3); }