projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f60bd66
)
Add unit test for AggregateException.GetBaseException that works on .net but is broke...
author
Blewzman
<dw@exram.de>
Mon, 17 Feb 2014 16:07:26 +0000
(17:07 +0100)
committer
Blewzman
<dw@exram.de>
Mon, 17 Feb 2014 16:07:26 +0000
(17:07 +0100)
mcs/class/corlib/Test/System/AggregateExceptionTests.cs
patch
|
blob
|
history
diff --git
a/mcs/class/corlib/Test/System/AggregateExceptionTests.cs
b/mcs/class/corlib/Test/System/AggregateExceptionTests.cs
index d133a82cd86d9d3c26dab9bf6d4a4f8188c1d4d5..67cedafbbb4413b53d3f58deea763b533a9b51ea 100644
(file)
--- a/
mcs/class/corlib/Test/System/AggregateExceptionTests.cs
+++ b/
mcs/class/corlib/Test/System/AggregateExceptionTests.cs
@@
-119,6
+119,14
@@
namespace MonoTests.System
Assert.AreEqual (expected, ae2.GetBaseException ().InnerException, "#2");
}
+ [Test]
+ public void GetBaseException_stops_at_first_inner_exception_that_is_not_AggregateException()
+ {
+ var inner = new ArgumentNullException();
+ var outer = new InvalidOperationException("x", inner);
+ Assert.AreEqual(outer, new AggregateException(outer).GetBaseException());
+ }
+
static void Throws (Type t, Action action)
{
Exception e = null;