public void RunWorkerAsync_SubscribeToOnRunWorkerCompletedEventAndWorkThrowsException_InvokesOnRunWorkerCompletedWithExceptionDetails()
        {
            // arrange
            WorkerTester tester = new WorkerTester(InitializeWorker());

            // act
            WorkerTesterResult result = tester.RunWorkerAsyncWithException(null);

            // assert
            Assert.That(result.OnRunWorkerComplatedEventArgs.Error, Is.InstanceOf <Exception>());
        }
        public void RunWorkerAsync_SubscribeToOnRunWorkerCompletedEventAndWorkThrowsException_InvokesOnRunWorkerCompletedWithExceptionDetails()
        {
            // arrange
            WorkerTester tester = new WorkerTester(InitializeWorker());

            // act
            WorkerTesterResult result = tester.RunWorkerAsyncWithException(null);

            // assert
            Assert.That(result.OnRunWorkerComplatedEventArgs.Error, Is.InstanceOf<Exception>());
        }