bUnit
bUnit copied to clipboard
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass param...
Users sometimes need to add mandatory components into the render tree that does not have a `ChildContent` parameter. The `RenderTree` currently only allows adding components that has a `ChildContent` property,...
Right now an IRenderedFragment/IRenderedComponent allows users to search for any child complements. However as https://github.com/telerik/blazor-ui/pull/259#issuecomment-1678477209 suggests, it can be useful to go to the root component and parent component. Much...
This component and test shows a scenario where there is duplicated component references in `RenderBatch.UpdatedComponents`. However, we should not have a dependency on 3rd party components in our test suite,...
Should bUnit default to always generate markup using a specific culture? When e.g. a decimal is converted to a string, whatever the `Thread.CurrentThread.CurrentCulture` and `Thread.CurrentThread.CurrentUICulture` will affect how the number...
We have some pretty good docs, but it would be really cool if select part of that was directly available in the editor via code docs. E.g. the `RenderComponent` method...
Currently we have the following type hierarchy: ```mermaid classDiagram IRenderedFragmentBase
Our friends from Telerik have been working on a prototype that will allow us to run bUnit tests inside their Blazor REPL environment. I suspect there will be some limitations...
When interacting with a child component's html, should it be treated in the whole rendered context?
I noticed something. When I have a form and a component containing a submit button.... * When I render the outer component, find the html button and click, the submit...
**Describe the bug** Testing component with `Task.Run` inside of `async Task OnInitializedAsync` results in intermittent test failures. When running the test by itself, it will always succeed. When running with...
**Describe the bug** In the MSAL backed Blazor WASM authentication packages, there exists an overloaded class the [`RemoteAuthenticationService`](https://github.com/dotnet/dotnet/blob/51b32b1b529b9c3e787fd487c9dc9a66d5aa37ba/src/aspnetcore/src/Components/WebAssembly/WebAssembly.Authentication/src/Services/RemoteAuthenticationService.cs#L21). This service implements the `AuthenticationStateProvider` _and_ an `IRemoteAuthenticationService`. The [DI for this...