Exemplo n.º 1
0
        public void RenderWorksAsExpected()
        {
            // --- Arrange
            const string TEXT     = "It's a text";
            const string EXPECTED = "It's a text";

            var text = new HtmlText(TEXT);

            // --- Act
            var rendered = text.Render();

            // --- Assert
            rendered.ShouldHaveCountOf(1);
            rendered[0].ToString().ShouldEqual(EXPECTED);
        }