Providing Input to a Component Under Test
This section covers the various ways to provide input to a component under test. It’s split into four sub sections:
- Passing Parameters to Components: This covers passing regular parameters, child content, cascading values, event callbacks, etc. This topic is mostly relevant when writing tests in C# only.
- Injecting Services into Components Under Test: This covers injecting services into components under test. This topic is relevant for both Razor-based tests and C#-only tests.
- Controlling the Root Render Tree: This covers how to modify the root render tree in which components under tests are rendered.
- Configure 3rd Party Libraries for Testing: This covers setting up third-party libraries in a bUnit testing scenario so that components under test that use them can be tested easily.