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); }