public void removeCourseFromStudentWishlist_HappyPath_PriorityChange() { //Get Entry int studentNum = 1; int courseNum = 1; Wishlist entryToRemove = _context.Wishlist.Find(studentNum, courseNum); Assert.NotNull(entryToRemove); //Get Entry To Remove Priority int entryToRemovePriority = entryToRemove.priority; Assert.True(entryToRemovePriority > 0); //Get Entry With One Lower Priority int nextEntryPriority = entryToRemove.priority + 1; Wishlist nextEntry = _context.Wishlist.SingleOrDefault(w => w.studentId == studentNum && w.priority == nextEntryPriority); Assert.NotNull(nextEntry); Assert.True(nextEntry.courseId != entryToRemove.courseId); //Remove Entry Wishlist removedEntry = _wishlistService.removeCourseFromStudentWishlist(entryToRemove.studentId, entryToRemove.courseId); //Check If Removed Entry Exists Assert.NotNull(removedEntry); //Check If Next Entry Priority Is Set To Removed Entry's Priority Assert.True(nextEntry.priority == entryToRemovePriority); }