Example #1
0
        public void ProcessLayoutString_NonServerControlColsIn_DivIsServerControl()
        {
            var layoutControl = new DummyGridControl();
            var result = layoutControl.PublicProcessLayoutString(@"<div class=""sf_colsIn""></div>", ensureSfColsWrapper: false);

            Assert.AreEqual(@"<div class=""sf_colsIn"" runat=""server""></div>", result);
        }
Example #2
0
        public void ProcessLayoutString_NonServerControlColsOutAndEnsureSfCols_DivIsServerControlAndWrapped()
        {
            var layoutControl = new DummyGridControl();
            var result = layoutControl.PublicProcessLayoutString(@"<div class=""sf_colsOut""></div>", ensureSfColsWrapper: true);

            Assert.AreEqual(@"<div runat=""server"" class=""sf_cols""><div class=""sf_colsOut"" runat=""server""></div></div>", result);
        }
Example #3
0
        public void PrecessLayoutString_ServerControlColsOut_ReturnsUnchangedTemplate()
        {
            var layoutControl = new DummyGridControl();
            var template = @"<div class=""sf_colsOut"" runat=""server""></div>";
            var result = layoutControl.PublicProcessLayoutString(template, ensureSfColsWrapper: false);

            Assert.AreEqual(template, result);
        }