public void WithTimeFormatAddsAttributeCorrectly() { TimeFormat value = TimeFormat.Millisecond; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Step( value ); Assert.AreSame( builder, result ); Assert.AreEqual( .001, builder.Attributes[ HtmlAttributes.Step ] ); }
public void AddsAttributeCorrectly() { int value = 1; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Step( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value, builder.Attributes[ HtmlAttributes.Step ] ); }