public void AddsAttributeCorrectly() { HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.DropZone(); Assert.AreSame( builder, result ); Assert.AreEqual( DropZoneType.Move.ToString().ToLower(), builder.Attributes[ HtmlAttributes.DropZone ] ); }
public void WithSpecifiedValueAddsAttributeCorrectly() { DropZoneType value = DropZoneType.Copy; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.DropZone( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.DropZone ] ); }