public void GivenOneElementHasBeenAddedToTheModelWhenClearIsCalledThenOnlyRootElementIsinModelAgain() { DsmElementModel model = new DsmElementModel(); Assert.AreEqual(1, model.GetElementCount()); model.ImportElement(1, "name", "type", 0, false, null, false); Assert.AreEqual(2, model.GetElementCount()); model.Clear(); Assert.AreEqual(1, model.GetElementCount()); }