{"action":"created","comment":{"url":"https://api.github.com/repos/nunit/nunit/pulls/comments/51330525","id":51330525,"diff_hunk":"@@ -33,6 +34,41 @@ namespace NUnit.Framework.Internal\n     /// </summary>\n     public class ExceptionHelper\n     {\n+#if !NET_4_5 && !PORTABLE\n+        private static readonly Action<Exception> PreserveStackTrace;\n+\n+        static ExceptionHelper()\n+        {\n+            var method = typeof(Exception).GetMethod(\"InternalPreserveStackTrace\", BindingFlags.Instance | BindingFlags.NonPublic);\n+\n+            if (method != null)\n+            {\n+                try\n+                {\n+                    PreserveStackTrace = (Action<Exception>)Delegate.CreateDelegate(typeof(Action<Exception>), method);\n+                    return;\n+                }\n+                catch (InvalidOperationException) { }\n+            }\n+            PreserveStackTrace = _ => { };\n+        }\n+#endif\n+\n+        /// <summary>\n+        /// Rethrows an exception, preserving its stack trace\n+        /// </summary>\n+        /// <param name=\"exception\">The exception to rethrow</param>\n+        public static void Rethrow(Exception exception)","path":"src/NUnitFramework/framework/Internal/ExceptionHelper.cs","position":36,"original_position":36,"commit_id":"b4ca6b27d3a2601999ccc8ba09588d079ceb4896","original_commit_id":"e656f980ce31c5fa779f7bc415c83820a39b2bf9","user":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"body":"Sorry about that... I used the solution that didn't include the NETCF project, so I didn't notice...","created_at":"2016-01-29T23:35:03Z","updated_at":"2016-01-29T23:35:03Z","html_url":"https://github.com/nunit/nunit/pull/1142#discussion_r51330525","pull_request_url":"https://api.github.com/repos/nunit/nunit/pulls/1142","_links":{"self":{"href":"https://api.github.com/repos/nunit/nunit/pulls/comments/51330525"},"html":{"href":"https://github.com/nunit/nunit/pull/1142#discussion_r51330525"},"pull_request":{"href":"https://api.github.com/repos/nunit/nunit/pulls/1142"}}},"pull_request":{"url":"https://api.github.com/repos/nunit/nunit/pulls/1142","id":53919670,"html_url":"https://github.com/nunit/nunit/pull/1142","diff_url":"https://github.com/nunit/nunit/pull/1142.diff","patch_url":"https://github.com/nunit/nunit/pull/1142.patch","issue_url":"https://api.github.com/repos/nunit/nunit/issues/1142","number":1142,"state":"closed","locked":false,"title":"[WIP] Fix #464: add support for Assert.ThrowsAsync","user":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"body":"Equivalent of `Assert.Throws` for non-void async methods.","created_at":"2015-12-17T00:32:42Z","updated_at":"2016-01-29T23:35:03Z","closed_at":"2016-01-20T00:51:13Z","merged_at":"2016-01-20T00:51:13Z","merge_commit_sha":"ca4dff67f07996f0c4ff73566437a4789ccebf11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nunit/nunit/pulls/1142/commits","review_comments_url":"https://api.github.com/repos/nunit/nunit/pulls/1142/comments","review_comment_url":"https://api.github.com/repos/nunit/nunit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1142/comments","statuses_url":"https://api.github.com/repos/nunit/nunit/statuses/b4ca6b27d3a2601999ccc8ba09588d079ceb4896","head":{"label":"thomaslevesque:issue-464","ref":"issue-464","sha":"b4ca6b27d3a2601999ccc8ba09588d079ceb4896","user":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"repo":{"id":48080294,"name":"nunit","full_name":"thomaslevesque/nunit","owner":{"login":"thomaslevesque","id":1864281,"avatar_url":"https://avatars.githubusercontent.com/u/1864281?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaslevesque","html_url":"https://github.com/thomaslevesque","followers_url":"https://api.github.com/users/thomaslevesque/followers","following_url":"https://api.github.com/users/thomaslevesque/following{/other_user}","gists_url":"https://api.github.com/users/thomaslevesque/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaslevesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaslevesque/subscriptions","organizations_url":"https://api.github.com/users/thomaslevesque/orgs","repos_url":"https://api.github.com/users/thomaslevesque/repos","events_url":"https://api.github.com/users/thomaslevesque/events{/privacy}","received_events_url":"https://api.github.com/users/thomaslevesque/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thomaslevesque/nunit","description":"NUnit 3.0 framework, engine and console runner","fork":true,"url":"https://api.github.com/repos/thomaslevesque/nunit","forks_url":"https://api.github.com/repos/thomaslevesque/nunit/forks","keys_url":"https://api.github.com/repos/thomaslevesque/nunit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thomaslevesque/nunit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thomaslevesque/nunit/teams","hooks_url":"https://api.github.com/repos/thomaslevesque/nunit/hooks","issue_events_url":"https://api.github.com/repos/thomaslevesque/nunit/issues/events{/number}","events_url":"https://api.github.com/repos/thomaslevesque/nunit/events","assignees_url":"https://api.github.com/repos/thomaslevesque/nunit/assignees{/user}","branches_url":"https://api.github.com/repos/thomaslevesque/nunit/branches{/branch}","tags_url":"https://api.github.com/repos/thomaslevesque/nunit/tags","blobs_url":"https://api.github.com/repos/thomaslevesque/nunit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thomaslevesque/nunit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thomaslevesque/nunit/git/refs{/sha}","trees_url":"https://api.github.com/repos/thomaslevesque/nunit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thomaslevesque/nunit/statuses/{sha}","languages_url":"https://api.github.com/repos/thomaslevesque/nunit/languages","stargazers_url":"https://api.github.com/repos/thomaslevesque/nunit/stargazers","contributors_url":"https://api.github.com/repos/thomaslevesque/nunit/contributors","subscribers_url":"https://api.github.com/repos/thomaslevesque/nunit/subscribers","subscription_url":"https://api.github.com/repos/thomaslevesque/nunit/subscription","commits_url":"https://api.github.com/repos/thomaslevesque/nunit/commits{/sha}","git_commits_url":"https://api.github.com/repos/thomaslevesque/nunit/git/commits{/sha}","comments_url":"https://api.github.com/repos/thomaslevesque/nunit/comments{/number}","issue_comment_url":"https://api.github.com/repos/thomaslevesque/nunit/issues/comments{/number}","contents_url":"https://api.github.com/repos/thomaslevesque/nunit/contents/{+path}","compare_url":"https://api.github.com/repos/thomaslevesque/nunit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thomaslevesque/nunit/merges","archive_url":"https://api.github.com/repos/thomaslevesque/nunit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thomaslevesque/nunit/downloads","issues_url":"https://api.github.com/repos/thomaslevesque/nunit/issues{/number}","pulls_url":"https://api.github.com/repos/thomaslevesque/nunit/pulls{/number}","milestones_url":"https://api.github.com/repos/thomaslevesque/nunit/milestones{/number}","notifications_url":"https://api.github.com/repos/thomaslevesque/nunit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thomaslevesque/nunit/labels{/name}","releases_url":"https://api.github.com/repos/thomaslevesque/nunit/releases{/id}","deployments_url":"https://api.github.com/repos/thomaslevesque/nunit/deployments","created_at":"2015-12-16T01:49:25Z","updated_at":"2016-01-20T00:05:59Z","pushed_at":"2016-01-20T00:10:23Z","git_url":"git://github.com/thomaslevesque/nunit.git","ssh_url":"git@github.com:thomaslevesque/nunit.git","clone_url":"https://github.com/thomaslevesque/nunit.git","svn_url":"https://github.com/thomaslevesque/nunit","homepage":"http://www.nunit.org/","size":28782,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nunit:master","ref":"master","sha":"e78b3a8a4bb4d3894f2b63f42eb20a5180b88c37","user":{"login":"nunit","id":2678858,"avatar_url":"https://avatars.githubusercontent.com/u/2678858?v=3","gravatar_id":"","url":"https://api.github.com/users/nunit","html_url":"https://github.com/nunit","followers_url":"https://api.github.com/users/nunit/followers","following_url":"https://api.github.com/users/nunit/following{/other_user}","gists_url":"https://api.github.com/users/nunit/gists{/gist_id}","starred_url":"https://api.github.com/users/nunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nunit/subscriptions","organizations_url":"https://api.github.com/users/nunit/orgs","repos_url":"https://api.github.com/users/nunit/repos","events_url":"https://api.github.com/users/nunit/events{/privacy}","received_events_url":"https://api.github.com/users/nunit/received_events","type":"Organization","site_admin":false},"repo":{"id":13692183,"name":"nunit","full_name":"nunit/nunit","owner":{"login":"nunit","id":2678858,"avatar_url":"https://avatars.githubusercontent.com/u/2678858?v=3","gravatar_id":"","url":"https://api.github.com/users/nunit","html_url":"https://github.com/nunit","followers_url":"https://api.github.com/users/nunit/followers","following_url":"https://api.github.com/users/nunit/following{/other_user}","gists_url":"https://api.github.com/users/nunit/gists{/gist_id}","starred_url":"https://api.github.com/users/nunit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nunit/subscriptions","organizations_url":"https://api.github.com/users/nunit/orgs","repos_url":"https://api.github.com/users/nunit/repos","events_url":"https://api.github.com/users/nunit/events{/privacy}","received_events_url":"https://api.github.com/users/nunit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nunit/nunit","description":"NUnit 3.0 framework, engine and console runner","fork":false,"url":"https://api.github.com/repos/nunit/nunit","forks_url":"https://api.github.com/repos/nunit/nunit/forks","keys_url":"https://api.github.com/repos/nunit/nunit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nunit/nunit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nunit/nunit/teams","hooks_url":"https://api.github.com/repos/nunit/nunit/hooks","issue_events_url":"https://api.github.com/repos/nunit/nunit/issues/events{/number}","events_url":"https://api.github.com/repos/nunit/nunit/events","assignees_url":"https://api.github.com/repos/nunit/nunit/assignees{/user}","branches_url":"https://api.github.com/repos/nunit/nunit/branches{/branch}","tags_url":"https://api.github.com/repos/nunit/nunit/tags","blobs_url":"https://api.github.com/repos/nunit/nunit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nunit/nunit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nunit/nunit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nunit/nunit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nunit/nunit/statuses/{sha}","languages_url":"https://api.github.com/repos/nunit/nunit/languages","stargazers_url":"https://api.github.com/repos/nunit/nunit/stargazers","contributors_url":"https://api.github.com/repos/nunit/nunit/contributors","subscribers_url":"https://api.github.com/repos/nunit/nunit/subscribers","subscription_url":"https://api.github.com/repos/nunit/nunit/subscription","commits_url":"https://api.github.com/repos/nunit/nunit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nunit/nunit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nunit/nunit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nunit/nunit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nunit/nunit/contents/{+path}","compare_url":"https://api.github.com/repos/nunit/nunit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nunit/nunit/merges","archive_url":"https://api.github.com/repos/nunit/nunit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nunit/nunit/downloads","issues_url":"https://api.github.com/repos/nunit/nunit/issues{/number}","pulls_url":"https://api.github.com/repos/nunit/nunit/pulls{/number}","milestones_url":"https://api.github.com/repos/nunit/nunit/milestones{/number}","notifications_url":"https://api.github.com/repos/nunit/nunit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nunit/nunit/labels{/name}","releases_url":"https://api.github.com/repos/nunit/nunit/releases{/id}","deployments_url":"https://api.github.com/repos/nunit/nunit/deployments","created_at":"2013-10-18T23:43:29Z","updated_at":"2016-01-29T05:42:16Z","pushed_at":"2016-01-29T23:29:44Z","git_url":"git://github.com/nunit/nunit.git","ssh_url":"git@github.com:nunit/nunit.git","clone_url":"https://github.com/nunit/nunit.git","svn_url":"https://github.com/nunit/nunit","homepage":"http://www.nunit.org/","size":35751,"stargazers_count":520,"watchers_count":520,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":209,"mirror_url":null,"open_issues_count":204,"forks":209,"open_issues":204,"watchers":520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nunit/nunit/pulls/1142"},"html":{"href":"https://github.com/nunit/nunit/pull/1142"},"issue":{"href":"https://api.github.com/repos/nunit/nunit/issues/1142"},"comments":{"href":"https://api.github.com/repos/nunit/nunit/issues/1142/comments"},"review_comments":{"href":"https://api.github.com/repos/nunit/nunit/pulls/1142/comments"},"review_comment":{"href":"https://api.github.com/repos/nunit/nunit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nunit/nunit/pulls/1142/commits"},"statuses":{"href":"https://api.github.com/repos/nunit/nunit/statuses/b4ca6b27d3a2601999ccc8ba09588d079ceb4896"}}}}