How do you tell if a .Net application is running as a Desktop application or running as a service?
We are trying to test our application with Fitnesse, which loads the app up as a service then makes calls into it.. but when a modal error box is pushed then it blows up.. I want to put a check to see if it is running in a service and if it is I want to throw an exception instead so our test will fail.
Is there a way to do this, other than passing a parameter to somewhere saying it was started by FitNesse?