Unit test to determine if a popup box was shown
I am not sure how to assert that a help file (.chm) was shown by a method with a void return type? The only thing I can think of is to check to see if any exception was thrown during the method, but that doesn't really verify the box was shown or not.
Does anyone know how to verify 开发者_运维百科if a help file was shown?
Check for the existence of the hh.exe process after opening it. This is the "Microsoft HTML Help Executable" process
精彩评论