Skip to content

Commit 210955e

Browse files
authored
Update index.md
1 parent 33bb24f commit 210955e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/site/docs/test-doubles/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ title: Mocking and Faking Component Dependencies
55

66
# Mocking Component Dependencies
77

8-
intro
8+
Mocking a component under tests dependencies (services) can be the differece between being able to write an easy to understand and stable test and the opposite. bUnit does not have any particular preferences when it comes to mocking frameworks, all the usual suspects will work with bUnit, e.g. Moq, JustMock and NSubstitute all work well with bUnit, so pick the one you are the most comfortable with and use it.
99

10-
Mention Moq, JustMock, say nothing special required.
10+
bUnit does however come with a few specially crafted mock helpers for some of Blazors built-in services, which are specifically designed to make it easy and clean to mock these, and more are planned in the future.
1111

12-
Read more points to specific mocking guides for Blazor.
12+
The built-in mock helpers are described on the following pages:
13+
14+
- <xref:faking-auth>
15+
- <xref:mocking-ijsruntime>

0 commit comments

Comments
 (0)