{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/wcf/pulls/comments/35040218","id":35040218,"diff_hunk":"@@ -318,4 +318,43 @@ public static void UnknownUrl_Throws_ProtocolException()\n             Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format(\"Expected exception message to contain '{0}'\", protocolExceptionUri));\n         }\n     }\n+\n+    [Fact]\n+    [ActiveIssue(194)]\n+    [OuterLoop]\n+    public static void DuplexCallback_Throws_FaultException()\n+    {\n+        DuplexChannelFactory<IWcfDuplexTaskReturnService> factory = null;\n+        Guid guid = Guid.NewGuid();\n+\n+        NetTcpBinding binding = new NetTcpBinding();\n+        binding.Security.Mode = SecurityMode.None;\n+\n+        DuplexTaskReturnServiceCallback callbackService = new DuplexTaskReturnServiceCallback();\n+        InstanceContext context = new InstanceContext(callbackService);\n+\n+        try\n+        {\n+            var exception = Assert.Throws<FaultException<FaultDetail>>(() =>\n+            {\n+                using (factory = new DuplexChannelFactory<IWcfDuplexTaskReturnService>(context, binding, new EndpointAddress(Endpoints.Tcp_NoSecurity_TaskReturn_Address)))\n+                {\n+                    IWcfDuplexTaskReturnService serviceProxy = factory.CreateChannel();\n+\n+                    Task<Guid> task = serviceProxy.FaultPing(guid);\n+                    if ((task as IAsyncResult).AsyncWaitHandle.WaitOne(new TimeSpan(0, 0, 10)))\n+                    {\n+                        Guid returnedGuid = task.GetAwaiter().GetResult();","path":"src/System.Private.ServiceModel/tests/Scenarios/Client/ExpectedExceptions/ExpectedExceptionTests.cs","position":42,"original_position":42,"commit_id":"77a58d015d49f461aba9e8d27c0ff6035a3e270e","original_commit_id":"77a58d015d49f461aba9e8d27c0ff6035a3e270e","user":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"body":"Good idea.","created_at":"2015-07-20T20:32:10Z","updated_at":"2015-07-20T20:32:10Z","html_url":"https://github.com/dotnet/wcf/pull/200#discussion_r35040218","pull_request_url":"https://api.github.com/repos/dotnet/wcf/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/comments/35040218"},"html":{"href":"https://github.com/dotnet/wcf/pull/200#discussion_r35040218"},"pull_request":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/wcf/pulls/200","id":40380895,"html_url":"https://github.com/dotnet/wcf/pull/200","diff_url":"https://github.com/dotnet/wcf/pull/200.diff","patch_url":"https://github.com/dotnet/wcf/pull/200.patch","issue_url":"https://api.github.com/repos/dotnet/wcf/issues/200","number":200,"state":"open","locked":false,"title":"Adding FaultContract negative test for Duplex scenario.","user":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"body":"* Test currently fails, opened Issue 194 and added the ActiveIssue attribute to the test.\r\nFixes #169","created_at":"2015-07-20T18:16:29Z","updated_at":"2015-07-20T20:32:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fa203c7c4937458c32bb6764bc386ac5964f32b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/wcf/pulls/200/commits","review_comments_url":"https://api.github.com/repos/dotnet/wcf/pulls/200/comments","review_comment_url":"https://api.github.com/repos/dotnet/wcf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/wcf/issues/200/comments","statuses_url":"https://api.github.com/repos/dotnet/wcf/statuses/77a58d015d49f461aba9e8d27c0ff6035a3e270e","head":{"label":"StephenBonikowsky:Issue169","ref":"Issue169","sha":"77a58d015d49f461aba9e8d27c0ff6035a3e270e","user":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"repo":{"id":35977176,"name":"wcf","full_name":"StephenBonikowsky/wcf","owner":{"login":"StephenBonikowsky","id":12057732,"avatar_url":"https://avatars.githubusercontent.com/u/12057732?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenBonikowsky","html_url":"https://github.com/StephenBonikowsky","followers_url":"https://api.github.com/users/StephenBonikowsky/followers","following_url":"https://api.github.com/users/StephenBonikowsky/following{/other_user}","gists_url":"https://api.github.com/users/StephenBonikowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBonikowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBonikowsky/subscriptions","organizations_url":"https://api.github.com/users/StephenBonikowsky/orgs","repos_url":"https://api.github.com/users/StephenBonikowsky/repos","events_url":"https://api.github.com/users/StephenBonikowsky/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBonikowsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StephenBonikowsky/wcf","description":"This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.","fork":true,"url":"https://api.github.com/repos/StephenBonikowsky/wcf","forks_url":"https://api.github.com/repos/StephenBonikowsky/wcf/forks","keys_url":"https://api.github.com/repos/StephenBonikowsky/wcf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBonikowsky/wcf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBonikowsky/wcf/teams","hooks_url":"https://api.github.com/repos/StephenBonikowsky/wcf/hooks","issue_events_url":"https://api.github.com/repos/StephenBonikowsky/wcf/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBonikowsky/wcf/events","assignees_url":"https://api.github.com/repos/StephenBonikowsky/wcf/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBonikowsky/wcf/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBonikowsky/wcf/tags","blobs_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBonikowsky/wcf/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBonikowsky/wcf/languages","stargazers_url":"https://api.github.com/repos/StephenBonikowsky/wcf/stargazers","contributors_url":"https://api.github.com/repos/StephenBonikowsky/wcf/contributors","subscribers_url":"https://api.github.com/repos/StephenBonikowsky/wcf/subscribers","subscription_url":"https://api.github.com/repos/StephenBonikowsky/wcf/subscription","commits_url":"https://api.github.com/repos/StephenBonikowsky/wcf/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBonikowsky/wcf/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBonikowsky/wcf/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBonikowsky/wcf/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBonikowsky/wcf/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBonikowsky/wcf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBonikowsky/wcf/merges","archive_url":"https://api.github.com/repos/StephenBonikowsky/wcf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBonikowsky/wcf/downloads","issues_url":"https://api.github.com/repos/StephenBonikowsky/wcf/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBonikowsky/wcf/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBonikowsky/wcf/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBonikowsky/wcf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBonikowsky/wcf/labels{/name}","releases_url":"https://api.github.com/repos/StephenBonikowsky/wcf/releases{/id}","created_at":"2015-05-20T22:17:45Z","updated_at":"2015-05-20T22:17:46Z","pushed_at":"2015-07-20T18:19:57Z","git_url":"git://github.com/StephenBonikowsky/wcf.git","ssh_url":"git@github.com:StephenBonikowsky/wcf.git","clone_url":"https://github.com/StephenBonikowsky/wcf.git","svn_url":"https://github.com/StephenBonikowsky/wcf","homepage":"","size":1486,"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":"dotnet:master","ref":"master","sha":"2b4bd31bb11329beb317f543c6694029203d5fd8","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35562993,"name":"wcf","full_name":"dotnet/wcf","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/wcf","description":"This repo contains the client-oriented WCF libraries that enable applications built on .NET Core to communicate with WCF services.","fork":false,"url":"https://api.github.com/repos/dotnet/wcf","forks_url":"https://api.github.com/repos/dotnet/wcf/forks","keys_url":"https://api.github.com/repos/dotnet/wcf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/wcf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/wcf/teams","hooks_url":"https://api.github.com/repos/dotnet/wcf/hooks","issue_events_url":"https://api.github.com/repos/dotnet/wcf/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/wcf/events","assignees_url":"https://api.github.com/repos/dotnet/wcf/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/wcf/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/wcf/tags","blobs_url":"https://api.github.com/repos/dotnet/wcf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/wcf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/wcf/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/wcf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/wcf/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/wcf/languages","stargazers_url":"https://api.github.com/repos/dotnet/wcf/stargazers","contributors_url":"https://api.github.com/repos/dotnet/wcf/contributors","subscribers_url":"https://api.github.com/repos/dotnet/wcf/subscribers","subscription_url":"https://api.github.com/repos/dotnet/wcf/subscription","commits_url":"https://api.github.com/repos/dotnet/wcf/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/wcf/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/wcf/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/wcf/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/wcf/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/wcf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/wcf/merges","archive_url":"https://api.github.com/repos/dotnet/wcf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/wcf/downloads","issues_url":"https://api.github.com/repos/dotnet/wcf/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/wcf/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/wcf/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/wcf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/wcf/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/wcf/releases{/id}","created_at":"2015-05-13T17:17:03Z","updated_at":"2015-07-16T20:15:30Z","pushed_at":"2015-07-20T18:50:18Z","git_url":"git://github.com/dotnet/wcf.git","ssh_url":"git@github.com:dotnet/wcf.git","clone_url":"https://github.com/dotnet/wcf.git","svn_url":"https://github.com/dotnet/wcf","homepage":"","size":3260,"stargazers_count":472,"watchers_count":472,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":135,"mirror_url":null,"open_issues_count":77,"forks":135,"open_issues":77,"watchers":472,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/200"},"html":{"href":"https://github.com/dotnet/wcf/pull/200"},"issue":{"href":"https://api.github.com/repos/dotnet/wcf/issues/200"},"comments":{"href":"https://api.github.com/repos/dotnet/wcf/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/wcf/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/wcf/statuses/77a58d015d49f461aba9e8d27c0ff6035a3e270e"}}}}