public void When_Creating_element_With_Dictionary_Sticks() { var hash = new Hash {{"Key1", "Val1"}, {"Key2", "Val2"}, {"Key3", "Val3"}}; var element = new InputButton(hash); Assert.That(element.Tag, Is.EqualTo("input")); Assert.That(element.Attributes.Count == 4); Assert.That(element["Key1"] == "Val1"); }
public void Tag_Is_Correct() { var element = new InputButton(); Assert.That(element.Tag, Is.EqualTo("input")); Assert.That(element.Type, Is.EqualTo("button")); }