public void RethrowPreservesStackTrace() { var e = Assert.Throws <Exception>(() => Bad.Foo(ex => ex.Rethrow())); Console.WriteLine(e.StackTrace); Assert.Contains("Baz", e.StackTrace); }