Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan@xamarin.com>2018-09-26 14:01:31 +0300
committerDominique Louis <dominique@Dominiques-MacBook-Pro-2.local>2018-10-09 18:39:12 +0300
commit739146f4911322a3d547b624fe346c5fcd3529f6 (patch)
tree22ec48d626207704fe2fea3efc32b5c190adb5ce /Xamarin.PropertyEditing.Tests
parente0d21548fa0349b37431ea7fe652b38d009f66b6 (diff)
[Tests] Do not crash out the VSM test runner
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r--Xamarin.PropertyEditing.Tests/TestContext.cs18
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;
}
}