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:
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;
}
}