public void BuildDhtmlxGridHeaderTest()
        {
            var gridSpec = new TestGridSpec();
            var result   = DhtmlxGridHtmlHelpers.BuildDhtmlxGridHeader(gridSpec, GridName, FirmaDhtmlxGridHtmlHelpers.ExcelDownloadUrl);

            Approvals.Verify(result);
        }
        public void BuildGridColumnsTest()
        {
            const string indent   = "";
            var          gridSpec = new TestGridSpec();
            var          result   = DhtmlxGridHtmlHelpers.BuildGridColumns(gridSpec, indent);

            Approvals.Verify(result);
        }
Exemplo n.º 3
0
        public void BuildDhtmlxGridHeaderTest()
        {
            AssertCustom.IgnoreOnBuildServer();

            var gridSpec = new TestGridSpec();
            var result   = DhtmlxGridHtmlHelpers.BuildDhtmlxGridHeader(gridSpec, GridName, NeptuneDhtmlxGridHtmlHelpers.ExcelDownloadWithFooterUrl, NeptuneDhtmlxGridHtmlHelpers.ExcelDownloadWithoutFooterUrl);

            Approvals.Verify(result);
        }
        public void VerifyJavascriptForDhtmlxGrid()
        {
            var          gridSpec = new TestGridSpec();
            const string gridName = "testGridName";


            var testGridSpecClasses = new List <TestGridSpecClass>();

            testGridSpecClasses.Add(new TestGridSpecClass(1, "One", true, 1000m));
            testGridSpecClasses.Add(new TestGridSpecClass(2, "Two", true, 2000m));
            testGridSpecClasses.Add(new TestGridSpecClass(3, "Three", false, 3000m));
            testGridSpecClasses.Add(new TestGridSpecClass(4, "Four", true, 4000m));
            testGridSpecClasses.Add(new TestGridSpecClass(5, "Five", false, 5000m));
            testGridSpecClasses.Add(new TestGridSpecClass(6, "Six", true, 6000m));

            var result = DhtmlxGridHtmlHelpers.DhtmlxGrid(gridSpec,
                                                          gridName,
                                                          string.Format("{0}/ListGridDataXml", TestControllerName),
                                                          "height:250px;");

            Approvals.Verify(result);
        }
        public void IsUsingSmartRenderingWithColumnsThatHaveTotalsTest()
        {
            var gridSpec = new TestGridSpec();

            Assert.That(DhtmlxGridHtmlHelpers.IsUsingSmartRendering(gridSpec), Is.False, "Should not be using smart rendering because we have a grid spec that has a total column");
        }