public void Can_Delete_Single_Word() { // 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 word repo.DeleteSingleWord(words[0]); // Get new count var newCount = repo.GetByCollectionId(collectionId).Count; // New count should be -1 original Assert.True(newCount == originalCount - 1); }