public void Test_AddExceptionHandling_ShouldAddExceptionHandling() { //---------------Set up test pack------------------- var unhandledExceptionHelper = new UnhandledExceptionHelperWin(false); //---------------Assert Precondition---------------- Assert.IsFalse(unhandledExceptionHelper.IsExceptionHandlingActive); //---------------Execute Test ---------------------- unhandledExceptionHelper.AddExceptionHandling(); //---------------Test Result ----------------------- Assert.IsTrue(unhandledExceptionHelper.IsExceptionHandlingActive); }
public void Test_AddExceptionHandling_ShouldAddExceptionHandling() { //---------------Set up test pack------------------- var unhandledExceptionHelper = new UnhandledExceptionHelperWin(false); //---------------Assert Precondition---------------- Assert.IsFalse(unhandledExceptionHelper.IsExceptionHandlingActive); //---------------Execute Test ---------------------- unhandledExceptionHelper.AddExceptionHandling(); //---------------Test Result ----------------------- Assert.IsTrue(unhandledExceptionHelper.IsExceptionHandlingActive); }