Beispiel #1
0
        public void CookedValueTest()
        {
            TagValue target = new TagValue("Test", TagType.Additive, false);

            target.SetCookedValue("-Test");
            Assert.AreEqual("Test", target.Value);
            Assert.AreEqual(TagType.Subtractive, target.Type);

            target.SetCookedValue("Test");
            Assert.AreEqual("Test", target.Value);
            Assert.AreEqual(TagType.Additive, target.Type);

            target.SetCookedValue("-Test");
            target.SetCookedValue("+Test");
            Assert.AreEqual("Test", target.Value);
            Assert.AreEqual(TagType.Additive, target.Type);
        }
        public void CookedValueTest()
        {
            TagValue target = new TagValue("Test", TagType.Additive, false);
            target.SetCookedValue("-Test");
            Assert.AreEqual("Test", target.Value);
            Assert.AreEqual(TagType.Subtractive, target.Type);

            target.SetCookedValue("Test");
            Assert.AreEqual("Test", target.Value);
            Assert.AreEqual(TagType.Additive, target.Type);

            target.SetCookedValue("-Test");
            target.SetCookedValue("+Test");
            Assert.AreEqual("Test", target.Value);
            Assert.AreEqual(TagType.Additive, target.Type);
        }