public void Clear_NoTopics_IsNotDirty() { var relationships = new NamedTopicCollection("Test"); relationships.Clear(); Assert.IsFalse(relationships.IsDirty); }
public void Clear_ExistingTopics_IsDirty() { var relationships = new NamedTopicCollection("Test"); var related = TopicFactory.Create("Topic", "Page"); relationships.Add(related); relationships.IsDirty = false; relationships.Clear(); Assert.IsTrue(relationships.IsDirty); }