MvcContrib.UnitTests.UI.Grid.GridRendererTester.Should_not_automatically_encode_IHtmlString_instances C# (CSharp) Méthode

Should_not_automatically_encode_IHtmlString_instances() private méthode

private Should_not_automatically_encode_IHtmlString_instances ( ) : void
Résultat void
        public void Should_not_automatically_encode_IHtmlString_instances()
        {
            ColumnFor(x => new HtmlString("<script></script>")).Named("foo");
            string expected = "<table class=\"grid\"><thead><tr><th>foo</th></tr></thead><tbody><tr class=\"gridrow\"><td><script></script></td></tr></tbody></table>";
            RenderGrid().ShouldEqual(expected);
        }
GridRendererTester