public void ExistsReturnsFalseForItemsThatDoNotExist() { var content = new ContentManagement(); content.AddContentItem("MyId", "This is a string"); content.AddContentItem("MyId2", "This is a string2"); Assert.AreEqual(2, content.CountContentItems); Assert.IsFalse(content.Exists("not exist")); Assert.IsFalse(content.Exists("not exist 2")); }
public void ExistsCompressedReturnsTrueForItemsThatExist() { var content = new ContentManagement(true); content.AddContentItem("MyId", "This is a string"); content.AddContentItem("MyId2", "This is a string2"); Assert.AreEqual(2, content.CountContentItems); Assert.IsTrue(content.Exists("MyId")); Assert.IsTrue(content.Exists("MyId2")); }