public void GetTags() { var c = new Case(); c.AddTag("boom"); c.AddTag("boom2"); var tags = c.GetTags().ToList(); Assert.AreEqual(2, tags.Count()); Assert.AreEqual("boom", tags[0]); Assert.AreEqual("boom2", tags[1]); }
public void InvalidPercentComplete() { var c = new Case(); c.AddTag("xx%_Complete"); Assert.AreEqual(0, c.PercentComplete); }
public void NegativeCasePercentCompleteTag() { var c = new Case(); c.AddTag("-1%_complete"); Assert.AreEqual(0, c.PercentComplete); }
public void LowerCasePercentCompleteTag() { var c = new Case(); c.AddTag("10%_complete"); Assert.AreEqual(10, c.PercentComplete); }
public void TagsUpdatedWhenChanged() { var c = new Case(); c.AddTag("boom"); Assert.IsTrue(c.TagsUpdated); }
public void TagsUpdatedFalseWhenUnchanged() { var c = new Case(); c.AddTag("boom"); c.ResetUpdateFlags(); c.AddTag("boom"); Assert.IsFalse(c.TagsUpdated); }