public void SendMessageOrStartApplication_WhenStartIsNotSuccessful_DoesNotStartCleanupThread() { var starter = BuildMaybePipedApplicationStarter(1); starter.SendMessageOrStartApplication(() => "", () => false, false); _threadManager.DidNotReceiveWithAnyArgs().StartSynchronizedThread(Arg.Any <ISynchronizedThread>()); _threadManager.DidNotReceiveWithAnyArgs().StartSynchronizedThread(Arg.Any <ThreadStart>(), Arg.Any <string>()); _cleanUp.DidNotReceive().CleanSpoolFolder(); _cleanUp.DidNotReceive().CleanTempFolder(); }