aqsztdje3vj55239
How to test user controls
Good day everyone,
I've recently started working on a decently big project at work which uses a lot of user controls. Currently, if anyone wants to test the controls, they usually add it to one of our default applications, which is quite the pain since it takes up to 2 minutes to start, has a annoying log in screen and is pretty slow on our development laptops.
Coming from my own UI implementations in C++/OpenGL or IMGUI, I've always had a way to launch a window with only a single ui component for testing, saving a screenshot of every distinct frame, manual testing with pass/fail buttons.
But I couldn't find anything in regards to testing user controls in isolation in c#/wpf. I had the idea to do it similar to my manual pass/fail approach and just create a window and set the content to the user control, but I was wondering if there are any better ways or if I am simply bad at searching...
tldr:
how do I test user controls in isolation
2 replies