Skip to content

Commit 4c9c350

Browse files
authored
Update csharp-test-examples.md
1 parent 3273aaa commit 4c9c350

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/docs/csharp-test-examples.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ It is not uncommon to have components use Blazor's JSInterop functionality to ca
402402

403403
To make it easy to mock calls to JavaScript, the library comes with a `IJsRuntime` mocking helper, that allows you to specify return how JSInterop calls should be handled, and to verify that they have happened.
404404

405-
If you have more complex mocking needs, you could look to frameworks like [Moq](https://github.com/Moq).
405+
If you have more complex mocking needs, you could look to frameworks like [Moq](https://github.com/Moq) or [JustMock Lite](https://github.com/telerik/JustMockLite), which both work nicely with bUnit.
406406

407407
To help us test the Mock JSRuntime, we have the [WikiSearch.razor](https://github.com/egil/razor-components-testing-library/tree/master/sample/src/Components/WikiSearch.razor) component, which looks like this:
408408

@@ -628,4 +628,4 @@ public class FetchDataTest : ComponentTestFixture
628628

629629
In the previous sections we have seen a few examples of method calls that trigger `@on-event` handlers, e.g. `cut.Find(selector).Click()` that triggers the `@onclick` event handler attached to the element that matches the search query.
630630

631-
The following triggers are currently available in PascalCase, without the `@on`-prefix. E.g. the `@onbeforeactivate` event is available as `BeforeActivate()` in various overloads.
631+
The following triggers are currently available in PascalCase, without the `@on`-prefix. E.g. the `@onbeforeactivate` event is available as `BeforeActivate()` in various overloads.

0 commit comments

Comments
 (0)