c# - Show winform during unit test -
i'm having bit of trouble showing winform during unit test. i'm using user validated testing procedure show user 2 different image segments captured during selenium ui testing , diff between them , allowing user pass or fail test based on whether or not images different.
i've created form 2 picturebox elements , added methods form allow form take in images require , load them picturebox , show form.
i've tried searching google + , can't find similar questions regarding this.
in test have:
var compareform = new plotcompare.plotcompare(); compareform.add_original_image(image1); compareform.add_diff_image(imagediff); compareform.show();
but .show();
call doesn't show form.
the issue can reasonably think of project i'm using class library because holds tests , therefore doesn't have main
function can access.
would appreciate help, in advance.
https://stackoverflow.com/a/34799721/3110529 answered this, setting showintaskbar
property of form false
show expected!
i had use .showdialog()
rather .show()
Comments
Post a Comment