bUnit-dev / bUnit

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 parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
https://bunit.dev
MIT License
1.12k stars 104 forks source link

Feature merge rf rc #1443

Closed linkdotnet closed 5 months ago

linkdotnet commented 5 months ago

@egil Some more changes I did:

egil commented 5 months ago

@egil Some more changes I did:

  • [x] Renamed FragmentContainer to BunitRootComponent

FragmentContainer is NOT the root component though. The hierarchy is:

  1. RootComponent (instantiated in BunitRenderer.Render method)
  2. components added to BunitContext.RenderTree
  3. FragmentContainer/BunitRootComponent - used as a marker component to detect when BunitContext.RenderTree components end.
  4. components passed to Render methods.

So I think it is better to undo that change to avoid confusion.