public void AddToMultiList() { string existingValue = "Pre;Post"; string fxToAdd = "One"; string postValue = "Pre;Post;One"; string newValue = FXUtils.AddFXToList(existingValue, fxToAdd); Assert.AreEqual(postValue, newValue); // make sure the cache returns the same value newValue = FXUtils.AddFXToList(existingValue, fxToAdd); Assert.AreEqual(postValue, newValue); }
public static void AddFrameworkToElement(this XmlElement element, FrameworkEntry framework) { var fxaValue = FXUtils.AddFXToList(element.GetAttribute(Consts.FrameworkAlternate), framework.Name); element.SetAttribute(Consts.FrameworkAlternate, fxaValue); }
public void AddToEmptyList() { string newValue = FXUtils.AddFXToList("", "One"); Assert.AreEqual("One", newValue); }
public void AddDupeToExistingList() { string newValue = FXUtils.AddFXToList("One", "One"); Assert.AreEqual("One", newValue); }