Пример #1
0
        public void Should_render_empty_section()
        {
            sectionNodeMock.SetupGet(n => n.Children).Returns(new IRazorNode[] {});
            renderer.RenderNode(sectionNodeMock.Object).ShouldEqual(
                @"@section HeadContent {

}");
        }
Пример #2
0
        public void Should_render_empty_section()
        {
            sectionNodeMock.SetupGet(n => n.Children).Returns(new IRazorNode[] {});

            string output = renderer.RenderNode(sectionNodeMock.Object);

            Regex.Replace(output, @"\s+", " ").ShouldEqual("@section HeadContent { }");
        }