public void HtmlAttribute_SetsValue() { actual = string.Empty; SliderBind target = new SliderBind(); target.Value = 100; string expected = "<div data-control-bind-source=\"{"value":100}\"></div>"; actual = Utility.ControlBindHtmlBuilder <SliderBind>(target, _startTag); Assert.AreEqual(expected, actual); }
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=\"{"values":[2,3]}\"></div>"; actual = Utility.ControlBindHtmlBuilder <SliderBind>(target, _startTag); Assert.AreEqual(expected, actual); }