{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/78625199","id":78625199,"diff_hunk":"@@ -184,5 +185,94 @@ Describe \"PowerShell Command Debugging\" -tags \"CI\" {\n \n }\n \n+# Scripting\\Debugging\\RunspaceDebuggingTests.cs\n+Describe \"Runspace Debugging API tests\" -tag CI {\n+    Context \"PSStandaloneMonitorRunspaceInfo tests\" {\n+        BeforeAll {\n+            $runspace = [runspacefactory]::CreateRunspace()\n+            $runspaceType = [PSMonitorRunspaceType]::WorkflowInlineScript\n+            $monitorInfo = [PSStandaloneMonitorRunspaceInfo]::new($runspace)\n+            $instanceId = $runspace.InstanceId\n+            $parentDebuggerId = [guid]::newguid()\n+            $ps = [powershell]::Create()\n+            $embeddedRunspaceInfo = [PSEmbeddedMonitorRunspaceInfo]::New($runspace,$runspaceType,$ps, $parentDebuggerId)\n+        }\n+        AfterAll {\n+            $runspace.Dispose()\n+            $ps.dispose()\n+        }\n+        \n+        It \"PSStandaloneMonitorRunspaceInfo should throw when called with a null argument to the constructor\" {\n+            try {\n+                [PSStandaloneMonitorRunspaceInfo]::new($null)\n+                throw \"Execution should have thrown\"\n+            }\n+            Catch {\n+                $_.FullyQualifiedErrorId | should be PSArgumentNullException\n+            }\n+        }\n+\n+        it \"PSStandaloneMonitorRunspaceInfo properties should have proper values\" {\n+            $monitorInfo.Runspace.InstanceId | Should be $InstanceId\n+            $monitorInfo.RunspaceType | Should be \"StandAlone\"\n+            $monitorInfo.NestedDebugger | Should BeNullOrEmpty\n+        }\n+\n+        It \"Embedded runspace properties should have proper values\" {\n+            $embeddedRunspaceInfo.Runspace.InstanceId | should be $InstanceId\n+            $embeddedRunspaceInfo.ParentDebuggerId | should be $parentDebuggerId\n+            $embeddedRunspaceInfo.Command.InstanceId | should be $ps.InstanceId\n+            $embeddedRunspaceInfo.NestedDebugger | Should BeNullOrEmpty\n+        }\n+    }\n+    Context \"Test Monitor RunspaceInfo API tests\" {\n+        BeforeAll {\n+            $runspace = [runspacefactory]::CreateRunspace()\n+            $runspace.Open()\n+            $associationId = [guid]::newguid()\n+            $runspaceInfo = [PSStandaloneMonitorRunspaceInfo]::new($runspace)\n+        }","path":"test/powershell/SDK/PSDebugging.Tests.ps1","position":56,"original_position":56,"commit_id":"59b98cf55b4508a37f30359df9a6f63147d62761","original_commit_id":"59b98cf55b4508a37f30359df9a6f63147d62761","user":{"login":"JamesWTruher","id":10214008,"avatar_url":"https://avatars.githubusercontent.com/u/10214008?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesWTruher","html_url":"https://github.com/JamesWTruher","followers_url":"https://api.github.com/users/JamesWTruher/followers","following_url":"https://api.github.com/users/JamesWTruher/following{/other_user}","gists_url":"https://api.github.com/users/JamesWTruher/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesWTruher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesWTruher/subscriptions","organizations_url":"https://api.github.com/users/JamesWTruher/orgs","repos_url":"https://api.github.com/users/JamesWTruher/repos","events_url":"https://api.github.com/users/JamesWTruher/events{/privacy}","received_events_url":"https://api.github.com/users/JamesWTruher/received_events","type":"User","site_admin":false},"body":"quite right\r\n\r\n---\r\nIn reply to: [78606708](https://github.com/PowerShell/PowerShell/pull/2239#discussion_r78606708) [](ancestors = 78606708)","created_at":"2016-09-13T19:14:07Z","updated_at":"2016-09-13T19:14:07Z","html_url":"https://github.com/PowerShell/PowerShell/pull/2239#discussion_r78625199","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/78625199"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/2239#discussion_r78625199"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239","id":84934433,"html_url":"https://github.com/PowerShell/PowerShell/pull/2239","diff_url":"https://github.com/PowerShell/PowerShell/pull/2239.diff","patch_url":"https://github.com/PowerShell/PowerShell/pull/2239.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/2239","number":2239,"state":"open","locked":false,"title":"Jameswtruher/testgap 004","user":{"login":"JamesWTruher","id":10214008,"avatar_url":"https://avatars.githubusercontent.com/u/10214008?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesWTruher","html_url":"https://github.com/JamesWTruher","followers_url":"https://api.github.com/users/JamesWTruher/followers","following_url":"https://api.github.com/users/JamesWTruher/following{/other_user}","gists_url":"https://api.github.com/users/JamesWTruher/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesWTruher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesWTruher/subscriptions","organizations_url":"https://api.github.com/users/JamesWTruher/orgs","repos_url":"https://api.github.com/users/JamesWTruher/repos","events_url":"https://api.github.com/users/JamesWTruher/events{/privacy}","received_events_url":"https://api.github.com/users/JamesWTruher/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-12T20:00:35Z","updated_at":"2016-09-13T19:14:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6a87c8125de656837a91ca5c4c7a6da43aef008","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/2239/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/59b98cf55b4508a37f30359df9a6f63147d62761","head":{"label":"JamesWTruher:jameswtruher/testgap-004","ref":"jameswtruher/testgap-004","sha":"59b98cf55b4508a37f30359df9a6f63147d62761","user":{"login":"JamesWTruher","id":10214008,"avatar_url":"https://avatars.githubusercontent.com/u/10214008?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesWTruher","html_url":"https://github.com/JamesWTruher","followers_url":"https://api.github.com/users/JamesWTruher/followers","following_url":"https://api.github.com/users/JamesWTruher/following{/other_user}","gists_url":"https://api.github.com/users/JamesWTruher/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesWTruher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesWTruher/subscriptions","organizations_url":"https://api.github.com/users/JamesWTruher/orgs","repos_url":"https://api.github.com/users/JamesWTruher/repos","events_url":"https://api.github.com/users/JamesWTruher/events{/privacy}","received_events_url":"https://api.github.com/users/JamesWTruher/received_events","type":"User","site_admin":false},"repo":{"id":66010077,"name":"PowerShell-1","full_name":"JamesWTruher/PowerShell-1","owner":{"login":"JamesWTruher","id":10214008,"avatar_url":"https://avatars.githubusercontent.com/u/10214008?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesWTruher","html_url":"https://github.com/JamesWTruher","followers_url":"https://api.github.com/users/JamesWTruher/followers","following_url":"https://api.github.com/users/JamesWTruher/following{/other_user}","gists_url":"https://api.github.com/users/JamesWTruher/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesWTruher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesWTruher/subscriptions","organizations_url":"https://api.github.com/users/JamesWTruher/orgs","repos_url":"https://api.github.com/users/JamesWTruher/repos","events_url":"https://api.github.com/users/JamesWTruher/events{/privacy}","received_events_url":"https://api.github.com/users/JamesWTruher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JamesWTruher/PowerShell-1","description":"PowerShell for every system","fork":true,"url":"https://api.github.com/repos/JamesWTruher/PowerShell-1","forks_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/forks","keys_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/teams","hooks_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/hooks","issue_events_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/issues/events{/number}","events_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/events","assignees_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/assignees{/user}","branches_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/branches{/branch}","tags_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/tags","blobs_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/languages","stargazers_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/stargazers","contributors_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/contributors","subscribers_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/subscribers","subscription_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/subscription","commits_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/contents/{+path}","compare_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/merges","archive_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/downloads","issues_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/issues{/number}","pulls_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/labels{/name}","releases_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/releases{/id}","deployments_url":"https://api.github.com/repos/JamesWTruher/PowerShell-1/deployments","created_at":"2016-08-18T15:46:34Z","updated_at":"2016-08-18T15:46:42Z","pushed_at":"2016-09-12T23:44:27Z","git_url":"git://github.com/JamesWTruher/PowerShell-1.git","ssh_url":"git@github.com:JamesWTruher/PowerShell-1.git","clone_url":"https://github.com/JamesWTruher/PowerShell-1.git","svn_url":"https://github.com/JamesWTruher/PowerShell-1","homepage":"","size":18549,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"PowerShell:master","ref":"master","sha":"e1bfe97d87c7e60cedcfb403f7e450047e8a4b96","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars.githubusercontent.com/u/11524380?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":49609581,"name":"PowerShell","full_name":"PowerShell/PowerShell","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars.githubusercontent.com/u/11524380?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShell","description":"PowerShell for every system!","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShell","forks_url":"https://api.github.com/repos/PowerShell/PowerShell/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShell/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShell/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShell/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShell/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShell/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShell/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShell/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShell/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShell/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShell/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShell/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShell/deployments","created_at":"2016-01-13T23:41:35Z","updated_at":"2016-09-13T16:32:18Z","pushed_at":"2016-09-13T18:31:49Z","git_url":"git://github.com/PowerShell/PowerShell.git","ssh_url":"git@github.com:PowerShell/PowerShell.git","clone_url":"https://github.com/PowerShell/PowerShell.git","svn_url":"https://github.com/PowerShell/PowerShell","homepage":"https://microsoft.com/powershell","size":24574,"stargazers_count":5063,"watchers_count":5063,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":533,"mirror_url":null,"open_issues_count":418,"forks":533,"open_issues":418,"watchers":5063,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/2239"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/2239"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/2239/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2239/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShell/statuses/59b98cf55b4508a37f30359df9a6f63147d62761"}}}}
{"actor":{"display_login":"JamesWTruher"}}