Skip to content

Commit f980ef8

Browse files
committed
Fixed errant unit test which covered up previous bug
There was a bug in the `Move_ContentTypeDescriptor_UpdatesContentTypeCache` unit test, which is one of the reasons we hadn't noticed the previous bug sooner. That unit test is now broken, appropriately, since the functionality now works. I've fixed the logic in the unit test so it correctly evaluates this functionality.
1 parent d7a61cd commit f980ef8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Tests/TopicRepositoryBaseTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public void Move_ContentTypeDescriptor_UpdatesContentTypeCache() {
418418

419419
_topicRepository.Move(contactContentType, pageContentType);
420420

421-
Assert.IsFalse(contactContentType?.AttributeDescriptors.Count > contactAttributeCount);
421+
Assert.AreNotEqual<int?>(contactContentType?.AttributeDescriptors.Count, contactAttributeCount);
422422

423423
}
424424

0 commit comments

Comments
 (0)