public void GetAttributeNamesTest() { var target = new Document(); const string name = "foo"; target.SetAttribute(name, ""); Assert.AreEqual(name, target.GetAttributeNames().Single()); }
public void FindValues_WithAttributeName_ShouldReturnAttributeValue() { var target = new Document(); const string name = "foo"; const string value = "bar"; object expected = new Tuple<string,object>(name,value); target.SetAttribute(name, value); var actual = target.FindValues(name).Single(); Assert.AreEqual(expected, actual, "GetAttributeReturnedDifferentValueFromSet"); }
public void SetAttributeTest() { var target = new Document(); const string name = "foo"; object value = "bar"; target.SetAttribute(name, value); Assert.AreEqual(value, target.GetAttribute(name)); }
public void GetSetAttributeTest() { var target = new Document(); const string name = "foo"; object expected = "bar"; target.SetAttribute(name, expected); var actual = target.GetAttribute(name); Assert.AreEqual(expected, actual, "GetAttributeReturnedDifferentValueFromSet"); }