示例#1
0
        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]);
        }
示例#2
0
        public void InvalidPercentComplete()
        {
            var c = new Case();
            c.AddTag("xx%_Complete");

            Assert.AreEqual(0, c.PercentComplete);
        }
示例#3
0
        public void NegativeCasePercentCompleteTag()
        {
            var c = new Case();
            c.AddTag("-1%_complete");

            Assert.AreEqual(0, c.PercentComplete);
        }
示例#4
0
        public void LowerCasePercentCompleteTag()
        {
            var c = new Case();
            c.AddTag("10%_complete");

            Assert.AreEqual(10, c.PercentComplete);
        }
示例#5
0
 public void TagsUpdatedWhenChanged()
 {
     var c = new Case();
     c.AddTag("boom");
     Assert.IsTrue(c.TagsUpdated);
 }
示例#6
0
 public void TagsUpdatedFalseWhenUnchanged()
 {
     var c = new Case();
     c.AddTag("boom");
     c.ResetUpdateFlags();
     c.AddTag("boom");
     Assert.IsFalse(c.TagsUpdated);
 }