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); }
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); }
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); }