Skip to content

Commit 8e5cd27

Browse files
authored
Update razor-examples.md
1 parent a0274d1 commit 8e5cd27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/razor-examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The library supports specifying the component under test and other markup/fragments using Razor syntax. The advantage is that we get Visual Studio's help writing Razor and HTML with IntelliSense and auto complete, which is a much nicer experience than writing HTML in a string in a C# class/file. This is especially useful for more complex scenarios, where e.g. a component under test has many parameters or complex child contents.
44

5-
**NOTE:** This feature is _EXPERIMENTAL_, and syntax and API will likely be changed. See [Contribute](readme.md/#contribute) for info on how to provide feedback and suggestions.
5+
**NOTE:** This feature is _EXPERIMENTAL_ and syntax and API will likely be changed. Check known issues before proceeding. See [Contribute](readme.md/#contribute) for info on how to provide feedback and suggestions.
66

77
1. [Creating new test component](#creating-new-test-component)
88
2. [Defining test cases](#defining-test-cases)
@@ -25,7 +25,7 @@ You will also need to import a few namespaces to make asserting and mocking poss
2525
@using Xunit @*or e.g. Shouldly, but see known issues below related to Shouldly *@
2626
```
2727

28-
**Tip:** In the folder you keep your Razor-based tests, add a `_Imports.razor` file, and put the above into that. Then all test components inherit the correct base component by default and have the default imports available.
28+
**Tip:** In the folder you keep your Razor-based tests, add a `_Imports.razor` file, and put the above into that. Then all test components inherit the correct base component by default and have the default imports available. Note that the Visual Studios test runner thinks your `_Imports.razor` test as well when you add `@inherits TestComponentBase` to it.
2929

3030
## Defining test cases
3131

0 commit comments

Comments
 (0)