Skip to content

Commit 43a2fdd

Browse files
committed
Added index pages to each topic
1 parent 7a67b5f commit 43a2fdd

4 files changed

Lines changed: 27 additions & 3 deletions

File tree

docs/docs/getting-started/index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ title: Getting started with bUnit
55

66
# Getting started with bUnit
77

8-
To get started writing tests for your Blazor components, you first need to set up a test project. Then you can start writing your tests, using either C# or Razor syntax.
8+
To get started writing tests for your Blazor components, you first need to set up a test project. Then you can start writing your tests, using either C# or Razor syntax.
9+
10+
These three pages will teach you *the basics*:
911

1012
1. **<xref:create-test-project>** covers setting up a bUnit test project.
1113
2. **<xref:writing-csharp-tests>** covers the basics of writing tests in C#.
1214
With C# based tests, you write all your testing logic in C# files, i.e. like regular unit tests.
1315
3. **<xref:writing-razor-tests>** covers the basics of writing tests in Razor and C# syntax.
1416
With Razor based tests, you write tests in `.razor` files, which allows you to declare, in Razor syntax, the component under test and other markup fragments you need. You still write your assertions via C# in the .razor file, inside `@code {...}` blocks.
1517

18+
After reading those, these topics will take you to the *next level*:
19+
20+
1. **[Providing different types of input](xref:providing-input)** to a component under test, e.g. passing parameters or injecting services.
21+
2. **[Verifying output in various ways](xref:verifying-output)** from a component under test, e.g. inspecting the rendered markup.
22+
3. **[Mocking dependencies](xref:mocking)** a component under test has, e.g. the `IJsRuntime` or `HttpClient`.
23+
1624
## Examples
1725

1826
To see examples of how to work assert and manipulate a rendered component, go to the following pages:

docs/docs/providing-input/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
uid: providing-input
3+
title: Providing input to a component under test
4+
---
5+
6+
# Providing input to a component under test
7+
8+
providing a toc with descriptions of each topic

docs/docs/toc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## [SnapshotTest options](xref:snapshot-options)
77

88
# [Providing input](xref:passing-parameters-to-components)
9-
## [Pass parameters and cascading values](xref:passing-parameters-to-components)
9+
## [Parameters and cascading values](xref:passing-parameters-to-components)
1010
## [Inject services](xref:inject-services-into-components)
1111
## [Trigger event handlers](xref:trigger-event-handlers)
1212
## [Trigger renders](xref:trigger-renders)
@@ -24,6 +24,6 @@
2424
## [Mocking localization](xref:mocking-localizer)
2525
## [Mocking NavigationManager](xref:mocking-navigation-manager)
2626

27-
# [Miscellaneous bUnit testing tips](xref:misc-test-tips)
27+
# [Miscellaneous testing tips](xref:misc-test-tips)
2828
# [Tutorials and Presentations](tutorials-and-presentations.md)
2929
# [Contribute](contribute.md)

docs/docs/verification/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
uid: verifying-output
3+
title: Verifying output from a component under test
4+
---
5+
6+
# Verifying output from a component under test
7+
8+
providing a toc with descriptions of each topic

0 commit comments

Comments
 (0)