Using The DARK ARTS To Write Tests For Blazor Page Declarations
October 25, 2023
• 315 views
blazorblazor ui componentsblazor tutorialblazor serverdotnet blazorblazor dotnetblazor programmingblazor testingblazor unit testingblazor bunitbunit blazor testingrazor componentswebassemblyblazor webassemblyxunit blazorhow to test blazorunit test blazor componentsunit testing blazor componentshow to unit test blazorblazor testing tutorialrazor pagesreflection in C#reflection in c# tutorialdotnet reflectionreflection csharp
Based on a recent request, someone asked how we might test the page declaration on a Blazor page/component. Great question! Except... I didn't know the answer. I didn't even know what we COULD do even if we could find some information about it. But, it turns out we can lean on a special dotnet feature in order to write tests on Blazor page declarations!
Have you subscribed to my weekly newsletter yet? A 5-minute read every weekend, right to your inbox, so you can start your weekend learning off...
