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.14k stars 105 forks source link

Mark and remove "Snapshot" based assertion #974

Closed linkdotnet closed 1 year ago

linkdotnet commented 1 year ago

Follow up to #968

The snapshop-based assertion-API is deprecated and will most probably be removed with v2 of bUnit.

var changes = cut.GetChangesSinceFirstRender();

changes.ShouldHaveChanges(...)

Therefore we want to mark the API obsolete as well as remove the documentation around those functions.

linkdotnet commented 1 year ago

To address 100% of the ticket we could add the ObsoleteAttribute on v1.

linkdotnet commented 1 year ago

Done on v2 - would close this for now.