Skip to content

Commit f9eb7a2

Browse files
authored
docs: change code ref to correct type
1 parent 18e456e commit f9eb7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/site/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Let’s write a test for the `<Counter>` component listed below. This comes with
3030

3131
To do this, you can carry out the following using bUnit and xUnit:
3232

33-
[!code-csharp[CounterTest.cs](../samples/tests/razor/CounterTest.razor)]
33+
[!code-cshtml[CounterTest.razor](../samples/tests/razor/CounterTest.razor)]
3434

3535
This test uses bUnit's test context to render the `Counter` component with the `Render` method. It then finds the button the component rendered and clicks it with the `Find` and `Click` methods. Finally, it finds the paragraph (`<p>`) element and verifies that it matches the expected markup passed to the MarkupMatches method.
3636

0 commit comments

Comments
 (0)