Skip to content

Commit 5cf67f0

Browse files
committed
Docs: improved semantic html comparison page 2
1 parent 1a0f3bf commit 5cf67f0

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

docs/samples/tests/razor/SemanticHtmlTest.razor

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@inherits TestComponentBase
22

3-
<Fixture Test="Test1">
3+
<Fixture Test="InitialHtmlIsCorrect">
44
<ComponentUnderTest>
55
<Heading />
66
</ComponentUnderTest>
@@ -11,8 +11,9 @@
1111
</h3>
1212
</Fragment>
1313

14-
@code {
15-
void Test1(Fixture fixture)
14+
@code
15+
{
16+
void InitialHtmlIsCorrect(Fixture fixture)
1617
{
1718
// Arrange - Gets the Heading component
1819
var cut = fixture.GetComponentUnderTest<Heading>();

docs/site/docs/toc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# [Verifying output](xref:verification)
1919
## [Verify Markup](xref:verify-markup)
2020
## [Verify Component State](xref:verify-component-state)
21-
## [Semantic HTML Markup Comparison](xref:semantic-html-comparison)
21+
## [Customizing Semantic Comparison](xref:semantic-html-comparison)
2222
## [Asynchronous Assertion of Changes](xref:async-assertion)
2323

2424
# [Mocking](xref:mocking)

docs/site/docs/verification/semantic-html-comparison.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ If we want to verify the markup is rendered correctly, and for example use RegEx
109109

110110
In a Razor based test, using the `<Fixture>` test type, the example looks like this:
111111

112-
[!code-html[SemanticHtmlTest.razor](../../../samples/tests/razor/SemanticHtmlTest.razor.cs#L3-L29)]
112+
[!code-html[SemanticHtmlTest.razor](../../../samples/tests/razor/SemanticHtmlTest.razor#L3-L30)]
113113

114114
In a Razor based test, using the `<SnapshotTest>` test type, the example looks like this:
115115

116-
[!code-html[SemanticHtmlTest.razor](../../../samples/tests/razor/SemanticHtmlTest.razor.cs#L31-L41)]
116+
[!code-html[SemanticHtmlTest.razor](../../../samples/tests/razor/SemanticHtmlTest.razor#L32-L42)]

0 commit comments

Comments
 (0)