public void SetSubgridUrl_WithoutParams_DefaultSubGridWithUrlAddressOnly()
        {
            SubGridSettings4Test sg = new SubGridSettings4Test();
            sg.SetSubgridUrl("http://www.mysite.com/");

            string expected =
            @"subGrid: true,
            subGridRowExpanded: function (sid, rid) {
            $('#' + sid).html(""<table id='subGridId'></table>"");
            var rd = $(this).getRowData(rid);
            $(""#subGridId"").jqGrid({
            url: 'http://www.mysite.com/'
            });
            }".RemoveSpaces();
            string actual = sg.ToString().RemoveSpaces();

            Assert.AreEqual(expected, actual);
        }
        public void SetSubgridUrl_SubGridUrlWithCorrectGetParams()
        {
            SubGridSettings4Test sg = new SubGridSettings4Test();
            sg.SetSubgridUrl("http://www.mysite.com/", "Code", "Name", "Status");

            string expected =
            @"subGrid: true,
            subGridRowExpanded: function (sid, rid) {
            $('#' + sid).html(""<table id='subGridId'></table>"");
            var rd = $(this).getRowData(rid);
            $(""#subGridId"").jqGrid({
            url: 'http://www.mysite.com/?'+'Code='+rd.Code+'&'+'Name='+rd.Name+'&'+'Status='+rd.Status
            });
            }".RemoveSpaces();
            string actual = sg.ToString().RemoveSpaces();

            Assert.AreEqual(expected, actual);
        }