Example #1
0
        public void Custom_html_attrs()
        {
            _people.Clear();
            string expected = ExpectedEmptyTable("There is no data available.", "sortable grid");        // "<table class=\"sortable grid\"><tr><td>There is no data available.</td></tr></table>";

            _model.Attributes(@class => "sortable grid");
            RenderGrid().ShouldEqual(expected);
        }
 public void Should_store_attributes()
 {
     _model.Attributes(new Dictionary <string, object>()
     {
         { "foo", "bar" }
     });
     AsGridModel.Attributes["foo"].ShouldEqual("bar");
 }