public void AddSameAttributeComma() { var list = new AttributeListBase(); list.Add("name", "value"); list.Add("name", "value2", appendSeparator: ","); Assert.AreEqual("name='value,value2'", list.ToString()); }
public void AddSameAttributeReplace() { var list = new AttributeListBase(); list.Add("name", "value"); list.Add("name", "value2", null); Assert.AreEqual("name='value2'", list.ToString()); }
public void AddSameAttributeWithoutSeparator() { var list = new AttributeListBase { { "name", "value" }, { "name", "value2" } }; Assert.AreEqual("name='value2'", list.ToString()); }