code_junkie

Should you display what's happening in the unit test as it runs?

Nov 11th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Console.WriteLine("Starting InteropApplication, with runInBackground set to true...");
  2. try
  3. {
  4. InteropApplication application = new InteropApplication(true);
  5. application.Start();
  6. Console.WriteLine("Application started correctly");
  7. }
  8. catch(Exception e)
  9. {
  10. Assert.Fail(string.Format("InteropApplication failed to start: {0}", e.ToString()));
  11. }
  12.  
  13. //test code continues ...
  14.  
  15. public void TestApplicationStart()
  16. {
  17. InteropApplication application = new InteropApplication(true);
  18. application.Start();
  19. }
Add Comment
Please, Sign In to add comment