{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/75977849","id":75977849,"diff_hunk":"@@ -0,0 +1,52 @@\n+Describe \"BooleanParameterDCR Tests\" -tags \"CI\" {\r\n+    BeforeAll {\r\n+        Function ParserTestSwitchCmdlet\r\n+        {\r\n+          [CmdletBinding()]\r\n+          param([switch]$switchParam)\r\n+          return $switchParam\r\n+        }\r\n+        \r\n+        Function ParserTestBoolCmdlet2\r\n+        {\r\n+          [CmdletBinding()]\r\n+          param([bool]$First=$false)\r\n+          return $First\r\n+        }\r\n+    }\r\n+    \r\n+    $tests = @(\r\n+            @{ inputTest = 0; expected = $false },\r\n+            @{ inputTest = 000; expected = $false },\r\n+            @{ inputTest = 0x00; expected = $false },\r\n+            @{ inputTest = 0.00; expected = $false }\r\n+    )\r\n+    It \"Test that passing zero works as the value for a Switch parameter, inputTest:<inputTest>,expect:<expected>\" -TestCases $tests {\r\n+            param ( $inputTest, $expected )\r\n+            [bool]$switchTestParam = $inputTest\r\n+            $result = ParserTestSwitchCmdlet -switchParam:$switchTestParam\r\n+            $result | should be $expected\r\n+    }\r\n+    \r\n+    $tests = @(\r\n+            @{ inputTest = $(1 -eq 1); expected = $true },\r\n+            @{ inputTest = $true; expected = $true },\r\n+            @{ inputTest = $TRUE; expected = $true }\r","path":"test/powershell/enginecore/BooleanParameterDCR.Tests.ps1","position":34,"original_position":34,"commit_id":"c2d193adabad6aa79ec0cf3eb2d42db86d06fc13","original_commit_id":"c2d193adabad6aa79ec0cf3eb2d42db86d06fc13","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":"I'm not sure whether this is needed - is the validation trying to determine the difference between $true and $TRUE","created_at":"2016-08-24T00:39:10Z","updated_at":"2016-08-24T00:39:10Z","html_url":"https://github.com/PowerShell/PowerShell/pull/2031#discussion_r75977849","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/75977849"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/2031#discussion_r75977849"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031","id":82306630,"html_url":"https://github.com/PowerShell/PowerShell/pull/2031","diff_url":"https://github.com/PowerShell/PowerShell/pull/2031.diff","patch_url":"https://github.com/PowerShell/PowerShell/pull/2031.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/2031","number":2031,"state":"open","locked":false,"title":"Add BooleanParameterDCR and Eventing Pester Test","user":{"login":"JumpingYang001","id":16585827,"avatar_url":"https://avatars.githubusercontent.com/u/16585827?v=3","gravatar_id":"","url":"https://api.github.com/users/JumpingYang001","html_url":"https://github.com/JumpingYang001","followers_url":"https://api.github.com/users/JumpingYang001/followers","following_url":"https://api.github.com/users/JumpingYang001/following{/other_user}","gists_url":"https://api.github.com/users/JumpingYang001/gists{/gist_id}","starred_url":"https://api.github.com/users/JumpingYang001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JumpingYang001/subscriptions","organizations_url":"https://api.github.com/users/JumpingYang001/orgs","repos_url":"https://api.github.com/users/JumpingYang001/repos","events_url":"https://api.github.com/users/JumpingYang001/events{/privacy}","received_events_url":"https://api.github.com/users/JumpingYang001/received_events","type":"User","site_admin":false},"body":"@andschwa @JamesWTruher @lzybkr , can you help to review this PR? thank you!","created_at":"2016-08-23T05:46:30Z","updated_at":"2016-08-24T00:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"285875e1e9acfa74d3fc640933a66da1ccb94b7e","assignee":{"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},"assignees":[{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/2031/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/c2d193adabad6aa79ec0cf3eb2d42db86d06fc13","head":{"label":"JumpingYang001:master","ref":"master","sha":"c2d193adabad6aa79ec0cf3eb2d42db86d06fc13","user":{"login":"JumpingYang001","id":16585827,"avatar_url":"https://avatars.githubusercontent.com/u/16585827?v=3","gravatar_id":"","url":"https://api.github.com/users/JumpingYang001","html_url":"https://github.com/JumpingYang001","followers_url":"https://api.github.com/users/JumpingYang001/followers","following_url":"https://api.github.com/users/JumpingYang001/following{/other_user}","gists_url":"https://api.github.com/users/JumpingYang001/gists{/gist_id}","starred_url":"https://api.github.com/users/JumpingYang001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JumpingYang001/subscriptions","organizations_url":"https://api.github.com/users/JumpingYang001/orgs","repos_url":"https://api.github.com/users/JumpingYang001/repos","events_url":"https://api.github.com/users/JumpingYang001/events{/privacy}","received_events_url":"https://api.github.com/users/JumpingYang001/received_events","type":"User","site_admin":false},"repo":{"id":66336493,"name":"PowerShell-1","full_name":"JumpingYang001/PowerShell-1","owner":{"login":"JumpingYang001","id":16585827,"avatar_url":"https://avatars.githubusercontent.com/u/16585827?v=3","gravatar_id":"","url":"https://api.github.com/users/JumpingYang001","html_url":"https://github.com/JumpingYang001","followers_url":"https://api.github.com/users/JumpingYang001/followers","following_url":"https://api.github.com/users/JumpingYang001/following{/other_user}","gists_url":"https://api.github.com/users/JumpingYang001/gists{/gist_id}","starred_url":"https://api.github.com/users/JumpingYang001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JumpingYang001/subscriptions","organizations_url":"https://api.github.com/users/JumpingYang001/orgs","repos_url":"https://api.github.com/users/JumpingYang001/repos","events_url":"https://api.github.com/users/JumpingYang001/events{/privacy}","received_events_url":"https://api.github.com/users/JumpingYang001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JumpingYang001/PowerShell-1","description":"PowerShell for every system!","fork":true,"url":"https://api.github.com/repos/JumpingYang001/PowerShell-1","forks_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/forks","keys_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/teams","hooks_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/hooks","issue_events_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/issues/events{/number}","events_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/events","assignees_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/assignees{/user}","branches_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/branches{/branch}","tags_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/tags","blobs_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/statuses/{sha}","languages_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/languages","stargazers_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/stargazers","contributors_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/contributors","subscribers_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/subscribers","subscription_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/subscription","commits_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/contents/{+path}","compare_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/merges","archive_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/downloads","issues_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/issues{/number}","pulls_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/pulls{/number}","milestones_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/milestones{/number}","notifications_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/labels{/name}","releases_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/releases{/id}","deployments_url":"https://api.github.com/repos/JumpingYang001/PowerShell-1/deployments","created_at":"2016-08-23T05:39:15Z","updated_at":"2016-08-23T05:39:23Z","pushed_at":"2016-08-23T06:06:50Z","git_url":"git://github.com/JumpingYang001/PowerShell-1.git","ssh_url":"git@github.com:JumpingYang001/PowerShell-1.git","clone_url":"https://github.com/JumpingYang001/PowerShell-1.git","svn_url":"https://github.com/JumpingYang001/PowerShell-1","homepage":"https://microsoft.com/powershell","size":16752,"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":"e4c5d013eb85f91380f2343a6955edc83894f252","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-08-24T00:30:56Z","pushed_at":"2016-08-24T00:00:30Z","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":22325,"stargazers_count":4375,"watchers_count":4375,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":400,"mirror_url":null,"open_issues_count":343,"forks":400,"open_issues":343,"watchers":4375,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/2031"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/2031"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/2031/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/2031/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShell/statuses/c2d193adabad6aa79ec0cf3eb2d42db86d06fc13"}}}}
{"actor":{"display_login":"JamesWTruher"}}