コード例 #1
0
        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 ] );
        }
コード例 #2
0
        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 ] );
        }