You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/readme.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This library's goal is to make it easy to write _comprehensive, stable unit test
10
10
11
11
## Introduction
12
12
13
-
**To make tests easy to write**, the library provides a few different ways of define the **component under test** (CUT):
13
+
**To make tests easy to write**, the library provides a few different ways of defining the **component under test** (CUT):
14
14
15
15
1. Render components from C# code via the `RenderComponent<TComponent>(params...)` method, that allow you to easily pass component parameters, cascading values, event callbacks to the component.
16
16
@@ -22,7 +22,7 @@ This library's goal is to make it easy to write _comprehensive, stable unit test
22
22
23
23
1. Inspect components state/properties directly.
24
24
2. Query the rendered HTML and assert against that directly. This is supported by [AngleSharp](https://anglesharp.github.io/)'s full implementation of the HTML5 DOM API.
25
-
3. Perform a stable semantic comparison the rendered HTML from a component under test with expected HTML. This is supported by the [AngleSharp.Diffing](https://github.com/AngleSharp/AngleSharp.Diffing) library, which e.g. will ignore insignificant whitespace, attribute order on elements, order of classes in `class="..."` attributes, handle boolean attributes correctly, among other things.
25
+
3. Perform a stable semantic comparison the rendered HTML from a component under test with an expected HTML string. This is supported by the [AngleSharp.Diffing](https://github.com/AngleSharp/AngleSharp.Diffing) library, which will ignore insignificant whitespace, attribute order on elements, order of classes in `class="..."` attributes, handle boolean attributes correctly, among other things.
26
26
27
27
## Getting started
28
28
@@ -34,7 +34,7 @@ Follow these steps to set up a new test project:
34
34
35
35
3. Add the following package references to your testing library:
36
36
37
-
-`Razor.Components.Testing.Library` (make sure to get `1.0.0-beta-1` version)
37
+
-`Razor.Components.Testing.Library` (make sure to get the `1.0.0` version)
38
38
-`Microsoft.NET.Test.Sdk`
39
39
-`xunit.core`
40
40
-`xunit.assert` (can be replaced with `Shouldly` or another assertion library)
@@ -82,6 +82,6 @@ There are a few ways you can help improve this library.
82
82
83
83
2. Suggest tweaks to the library's API or assertion helpers (create issue).
84
84
85
-
3.Find a bug or mistake in the library, create an issue, or even better, send in a pull request.
85
+
3.Found a bug or mistake in the library, create an issue, or even better, send in a pull request.
86
86
87
-
4. Help with documentation and/or good examples. If you figured out a elegant way to test a scenario, share it through an issue, or add it to the samples project (pull request), or add it to the documentation (pull request).
87
+
4. Help with documentation and/or good examples. If you figured out an elegant way to test a scenario, share it through an issue, or add it to the samples project (pull request), or add it to the documentation (pull request).
0 commit comments