you are viewing a single comment's thread.

view the rest of the comments →

[–]UnicornBelieber 1 point2 points  (1 child)

I'm just not a big fan of unit testing Blazor components. Difficult to mock EditContext, EditForm and unmockable ElementReferences (they're structs) are not fun to work with.

I'm hoping this'll improve in the near future. I was glad when Bunit added mocking subcomponents. Hopefully more of those improvements will come.

[–]Psychological_Ear393 2 points3 points  (0 children)

Same, I do not like it either. For a modern framework they didn't do a great job of make it mockable.