Skip to content

Commit 1a321b6

Browse files
committed
Merge branch 'master' into dev
2 parents b08ea7e + 1fe1b41 commit 1a321b6

3 files changed

Lines changed: 29 additions & 4 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Pull request description
2+
<!---
3+
Describe the changes here and motiviations behind them, if it is not obvious
4+
from the related issues. Does it have new features, breaking changes, etc.
5+
-->
6+
7+
### PR meta checklist
8+
- [ ] Pull request is targeting at `DEV` branch.
9+
- [ ] Pull request is linked to all related issues, if any.
10+
- [ ] I have read the _CONTRIBUTING_ document.
11+
12+
### Content checklist
13+
- [ ] My code follows the code style of this project and AspNetCore coding guidelines.
14+
- [ ] My change requires a change to the documentation.
15+
- [ ] I have updated the documentation accordingly.
16+
- [ ] I have updated the appropriate sub section in the _CHANGELOG.md_.
17+
- [ ] I have added, updated or removed tests to according to my changes.
18+
- [ ] All tests passed.

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.
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
# Presentations, guides, and tutorials
1+
# Presentations, guides, articles, tutorials, and blog posts
2+
Here is a list of some of the content out on the web that covers bUnit. If you produce something you think can be useful to bUnit's users, feel free to add the content to this page and send a pull request.
23

34
## Presentations
45

56
- [Testing Blazor Components - session from .NET Conf - Focus on Blazor](https://youtu.be/5d-uIxx1cUE)
7+
Content is based on beta-5.1 of bUnit.
68

79
## Twitch/Live coding
810

9-
- [Blazor StateHasChanged: Blazor Component Unit Testing with Egil Hansen](https://www.youtube.com/watch?v=x-zzcwHdZOk&t=211)
11+
- [Blazor StateHasChanged: Blazor Component Unit Testing with Egil Hansen](https://www.youtube.com/watch?v=x-zzcwHdZOk&t=211)
12+
Content is based on beta-5.1 of bUnit.
13+
14+
## Articles and blog posts
15+
16+
- [Unit Testing Blazor Components with bUnit and JustMock](https://www.telerik.com/blogs/unit-testing-blazor-components-bunit-justmock) by [Mihail Vladov](https://github.com/mihail-vladov). Content is based on beta-6 of bUnit.

0 commit comments

Comments
 (0)