I am looking for a better way of doing a unit test to test some visual aspects of my DirectX app. Cause the method I am using will sometimes leave the unit test running until .net fells like stoping it. And if the unit test window is not visible the cpu spikes while I am trying to do other things. (I use the little to the left of the test methods most of the time)
Here is what I am currently doing
public void Test()
Form frm = new Form();
// do something here
There is no assert test I can do to visually tell if shading or such things are working so..... that is why I must visually look.
My issue with this is that the unit tests do not end when I hit the X on the form that is created while running the test.
Is there a better way of creating a form and looping until the form is closed in a unit test?
Thanks for any direction.