Esempio n. 1
0
        public void HtmlAttribute_SetsValue()
        {
            actual = string.Empty;
            SliderBind target = new SliderBind();

            target.Value = 100;
            string expected = "<div data-control-bind-source=\"{&quot;value&quot;:100}\"></div>";

            actual = Utility.ControlBindHtmlBuilder <SliderBind>(target, _startTag);
            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void HtmlAttribute_SetsValues()
        {
            actual = string.Empty;
            SliderBind target = new SliderBind();
            List <int> list   = new List <int>();

            list.Add(2);
            list.Add(3);
            target.Values = list;
            string expected = "<div data-control-bind-source=\"{&quot;values&quot;:[2,3]}\"></div>";

            actual = Utility.ControlBindHtmlBuilder <SliderBind>(target, _startTag);
            Assert.AreEqual(expected, actual);
        }