コード例 #1
0
        public void AddStyleAttribute_style_attribute_appends_existing_attribute()
        {
            IDictionary<string, object> target = new Dictionary<string, object>();
            target.AddStyleAttribute("width", "100px");
            target.AddStyleAttribute("height", "100px");

            Assert.Equal("width:100px;height:100px;", target["style"]);
        }
コード例 #2
0
        public void AddStyleAttribute_style_attribute_appends_existing_attribute()
        {
            IDictionary <string, object> target = new Dictionary <string, object>();

            target.AddStyleAttribute("width", "100px");
            target.AddStyleAttribute("height", "100px");

            Assert.Equal("width:100px;height:100px;", target["style"]);
        }
コード例 #3
0
        public void AddStyleAttribute_creates_style_attribute()
        {
            IDictionary<string, object> target = new Dictionary<string, object>();
            target.AddStyleAttribute("height", "100px");

            Assert.Equal("height:100px;", target["style"]);
        }
コード例 #4
0
        public void AddStyleAttribute_creates_style_attribute()
        {
            IDictionary <string, object> target = new Dictionary <string, object>();

            target.AddStyleAttribute("height", "100px");

            Assert.Equal("height:100px;", target["style"]);
        }