示例#1
0
    public void Clear_NoTopics_IsNotDirty() {

      var relationships         = new NamedTopicCollection("Test");

      relationships.Clear();

      Assert.IsFalse(relationships.IsDirty);

    }
示例#2
0
    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);

    }