コード例 #1
0
        public void WithDirTypeValueAddsAttributeCorrectly()
        {
            DirType value = DirType.Ltr;

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Dir( value );

            Assert.AreSame( builder, result );
            Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.Dir ] );
        }
コード例 #2
0
        public void AddsAttributeCorrectly()
        {
            string value = "Value";

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Dir( value );

            Assert.AreSame( builder, result );
            Assert.AreEqual( value, builder.Attributes[ HtmlAttributes.Dir ] );
        }