using FamilyNido.Api.Shared.Markdown; using FluentAssertions; namespace FamilyNido.Tests.Wall; /// /// Exercises the safety properties of . In particular /// verifies that raw HTML is escaped rather than passed through — that is the /// contract the wall relies on for RF-WALL-011. /// public sealed class MarkdownRendererTests { private readonly MarkdownRenderer _renderer = new(); [Fact] public void Emphasis_is_rendered() { var (md, html) = _renderer.Render("Hola **nido**"); md.Should().Be("Hola **nido**"); html.Should().Contain("nido"); } [Fact] public void Soft_line_break_is_treated_as_hard_break() { var (_, html) = _renderer.Render("linea1\nlinea2"); html.Should().Contain("alert('x')"); html.Should().NotContain("