Skip to content

Commit f18a4e8

Browse files
authored
Update index.md
1 parent 624309b commit f18a4e8

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/site/index.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,17 @@ title: bUnit - a testing library for Blazor components
1313

1414
**bUnit** is a testing library for Blazor Components. Its goal is to make it easy to write _comprehensive, stable unit tests_. You can:
1515

16-
- Setup and define components under tests in C# or Razor syntax
16+
- Setup and define components under tests using C# or Razor syntax
1717
- Verify outcome using semantic HTML comparer
18-
- Interact with and inspect components
19-
- Trigger event handlers
20-
- Provide cascading values
21-
- Inject services
22-
- Mock `IJsRuntime`
18+
- Interact with and inspect components, trigger event handlers
19+
- Pass parameters, cascading values and inject services into components under test
20+
- Mock `IJsRuntime` and Blazors authentication and authorization
2321
- Perform snapshot testing
2422

2523
bUnit builds on top of existing unit testing frameworks such as xUnit, NUnit, and MSTest, which runs the Blazor components tests, just as any normal unit test.
2624

2725
**Go to the [Documentation](xref:getting-started) pages to learn more.**
2826

29-
> [!NOTE]
30-
> The documentation is currently being rewritten to reflect the recent changes.
31-
> Please excuse the mess.
32-
3327
### Test example
3428

3529
For example, to test the `<Counter>` component listed below:
@@ -38,15 +32,15 @@ For example, to test the `<Counter>` component listed below:
3832

3933
You can do the following, using bUnit and xUnit:
4034

41-
[!code-csharp[CounterTest.cs](../samples/tests/xunit/CounterTest.cs#L8-L20)]
35+
[!code-csharp[CounterTest.cs](../samples/tests/xunit/CounterTestWithCtx.cs#L8-L21)]
4236

4337
### NuGet downloads
4438

4539
bUnit is available on NuGet in various incarnations. If you are using xUnit as your general purpose testing framework, you can use `bunit`, which includes everything in one package. If you want to use NUnit or MStest, then pick `bunit.core` and `bunit.web`:
4640

4741
| Name | Type | NuGet Download Link |
4842
| ----- | ----- | ---- |
49-
| bUnit | Library, includes core, web, and xUnit | [![Nuget](https://img.shields.io/nuget/dt/bunit?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit/) |
43+
| bUnit | Library, includes core, web, and xUnit support | [![Nuget](https://img.shields.io/nuget/dt/bunit?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit/) |
5044
| bUnit.core | Library, only core | [![Nuget](https://img.shields.io/nuget/dt/bunit.core?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.core/) |
5145
| bUnit.web | Library, web and core | [![Nuget](https://img.shields.io/nuget/dt/bunit.web?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.web/) |
5246
| bUnit.xUnit |Library, xUnit and core | [![Nuget](https://img.shields.io/nuget/dt/bunit.xunit?logo=nuget&style=flat-square)](https://www.nuget.org/packages/bunit.xunit/) |

0 commit comments

Comments
 (0)