diff options
author | Alan McGovern <alan@xamarin.com> | 2018-09-26 14:01:31 +0300 |
---|---|---|
committer | Dominique Louis <dominique@Dominiques-MacBook-Pro-2.local> | 2018-10-09 18:39:12 +0300 |
commit | 739146f4911322a3d547b624fe346c5fcd3529f6 (patch) | |
tree | 22ec48d626207704fe2fea3efc32b5c190adb5ce /Xamarin.PropertyEditing.Tests | |
parent | e0d21548fa0349b37431ea7fe652b38d009f66b6 (diff) |
[Tests] Do not crash out the VSM test runner
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/TestContext.cs | 18 |
1 files changed, 16 insertions, 2 deletions
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; } } |