public void Renders_Correct_Editable_Attribute() { //Arrange var htmlAttributes = new HtmlAttributes(); //Act NameValueCollection attributes = htmlAttributes.Attribute("data-url", "http://www.google.com").RenderEditable(); //Assert Assert.That(attributes["data-url"], Is.EqualTo("http://www.google.com")); }
public void Renders_Correct_Attribute() { //Arrange var htmlAttributes = new HtmlAttributes(); //Act Dictionary<string, object> attributes = htmlAttributes.Attribute("data-url", "http://www.google.com").Render(); //Assert Assert.That(attributes["data-url"], Is.EqualTo("http://www.google.com")); }