Skip to content

Commit 7054f5c

Browse files
committed
Docs workflow
1 parent 9bac1ab commit 7054f5c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/CI-CD-Docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
dotnet build src/bunit.xunit/ --no-restore -p:version=$VERSION
3939
- name: Verfiy docs samples
4040
run: |
41-
dotnet test docs/sample/tests/mstest --no-restore
42-
dotnet test docs/sample/tests/nunit --no-restore
43-
dotnet test docs/sample/tests/razor --no-restore
44-
dotnet test docs/sample/tests/xunit --no-restore
41+
dotnet test docs/samples/tests/mstest --no-restore
42+
dotnet test docs/samples/tests/nunit --no-restore
43+
dotnet test docs/samples/tests/razor --no-restore
44+
dotnet test docs/samples/tests/xunit --no-restore
4545
- name: Building docs
4646
run: |
4747
dotnet build docs/site/

docs/site/docs/providing-input/passing-parameters-to-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Passing Parameters to a Component Under Test
77

88
bUnit comes with a bunch of ways to pass parameters to a component under test.
99

10-
In Razor-based tests, those written in `.razor` files, passing parameters is exactly the same as in your normal Blazor pages and components, i.e. through the normal Razor syntax, so this parameter passing style will not be covered here. Instead, this page will cover passing parameters in C# code.
10+
In Razor-based tests, those written in `.razor` files, passing parameters is exactly the same as in your normal Blazor pages and components.
1111

1212
For C#-based test code, you can:
1313

@@ -20,7 +20,7 @@ There are two methods in bUnit that allows passing parameters:
2020
- `RenderComponent` on the test context
2121
- `SetParametersAndRender` on a rendered component
2222

23-
In the following sub sections we will show each style, just click between them using the tabs.
23+
In the following sub sections we will show both C# and Razor-based test code and Razor based test style, just click between them using the tabs.
2424

2525
> [!TIP]
2626
> In all examples below, the <xref:Bunit.ComponentParameterFactory> is imported into the test class using `using static Bunit.ComponentParameterFactory;`. This results in a lot less boilerplate code, which improves test readability.

0 commit comments

Comments
 (0)