From 739146f4911322a3d547b624fe346c5fcd3529f6 Mon Sep 17 00:00:00 2001 From: Alan McGovern Date: Wed, 26 Sep 2018 12:01:31 +0100 Subject: [Tests] Do not crash out the VSM test runner --- Xamarin.PropertyEditing.Tests/TestContext.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Xamarin.PropertyEditing.Tests') diff --git a/Xamarin.PropertyEditing.Tests/TestContext.cs b/Xamarin.PropertyEditing.Tests/TestContext.cs index b7ede7e..0f4f018 100644 --- a/Xamarin.PropertyEditing.Tests/TestContext.cs +++ b/Xamarin.PropertyEditing.Tests/TestContext.cs @@ -15,7 +15,14 @@ namespace Xamarin.PropertyEditing.Tests } catch (Exception ex) { var info = ExceptionDispatchInfo.Capture (ex); this.exceptions.Add (info); - throw; + + // If we throw exceptions here we will crash out the test runner process when + // running tests from VSM. + // + // As part of our `Teardown` method we manually rethrow the exceptions so they + // propagate to NUnit and cause the test to fail. + + //throw; } } @@ -26,7 +33,14 @@ namespace Xamarin.PropertyEditing.Tests } catch (Exception ex) { var info = ExceptionDispatchInfo.Capture (ex); this.exceptions.Add (info); - throw; + + // If we throw exceptions here we will crash out the test runner process when + // running tests from VSM. + // + // As part of our `Teardown` method we manually rethrow the exceptions so they + // propagate to NUnit and cause the test to fail. + + //throw; } } -- cgit v1.2.3