* post: stub out initial post with outline * fix: add title attribute to lead in feed and add disc to list styles in posts * fix: apply style to artcile * post: work on rough draft * post: work on rough draft * post: work on rought draft * post: work on rought draft * post: more work on rough draft * post: finish post * chore: cleanup usings * chore: run dotnet format * docs: testing README * docs: update README.md
24 lines
537 B
Plaintext
24 lines
537 B
Plaintext
@inherits Bunit.TestContext
|
|
|
|
@code
|
|
{
|
|
[Test]
|
|
public void Footer_WhenRendered_ItShouldRenderFooterWithNavLinks()
|
|
{
|
|
var ctx = new TestContext();
|
|
|
|
var cut = ctx.Render(@<Footer />);
|
|
|
|
var footer = cut.Find("footer");
|
|
footer.Should().NotBeNull();
|
|
|
|
var navLinks = cut.FindAll("a");
|
|
navLinks.Count.Should().Be(3);
|
|
|
|
var navLinkTexts = navLinks.Select(x => x.TextContent);
|
|
|
|
navLinkTexts.Should().Contain("Code");
|
|
navLinkTexts.Should().Contain("Terms");
|
|
navLinkTexts.Should().Contain("Privacy");
|
|
}
|
|
} |