public void TestColumnDataToInt()
        {
            GridColumnsBuilder builder = new GridColumnsBuilder();

            builder.Data(0);
            var j = builder.ToJToken();

            Assert.Equal("{\"data\":0}", j.ToString(Newtonsoft.Json.Formatting.None));
        }
        public void TestColumnRenderFunction()
        {
            GridColumnsBuilder factory = new GridColumnsBuilder();

            factory.Render(() => "onRender");
            var j = factory.ToJToken();

            Assert.Equal("{\"render\":function(d,t,r,m){return onRender(d,t,r,m);}}", j.ToString(Newtonsoft.Json.Formatting.None));
        }
        public void TestColumnOrderDataToArray()
        {
            GridColumnsBuilder builder = new GridColumnsBuilder();

            builder.OrderData(new int[] { 0, 1, 2 });
            var j = builder.ToJToken();

            Assert.Equal("{\"orderData\":[0,1,2]}", j.ToString(Newtonsoft.Json.Formatting.None));
        }
        public void TestColumnRenderNull()
        {
            GridColumnsBuilder factory = new GridColumnsBuilder();

            factory.Render((string)null);
            var j = factory.ToJToken();

            Assert.Equal("{\"render\":null}", j.ToString(Newtonsoft.Json.Formatting.None));
        }