{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/cli/pulls/comments/47701036","id":47701036,"diff_hunk":"@@ -0,0 +1,176 @@\n+﻿// Copyright (c) .NET Foundation and contributors. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+using System;\n+using System.IO;\n+using System.Runtime.InteropServices;\n+using Microsoft.DotNet.Tools.Test.Utilities;\n+using Xunit;\n+using System.Linq;\n+using System.Collections.Generic;\n+using Microsoft.DotNet.ProjectModel;\n+\n+namespace Microsoft.DotNet.Tools.Publish.Tests\n+{\n+    public class PublishTests : TestBase\n+    {\n+        private string _testProjectsRoot = @\"TestProjects\";\n+\n+        public static IEnumerable<object[]> PublishOptions\n+        {\n+            get\n+            {\n+                return new[]\n+                {\n+                    new object[] { \"\", \"\", \"\", \"\" },\n+                    new object[] { \"dnxcore50\", \"\", \"\", \"\" },\n+                    new object[] { \"\", RuntimeIdentifier.Current, \"\", \"\" },\n+                    new object[] { \"\", \"\", \"Release\", \"\" },\n+                    new object[] { \"\", \"\", \"\", \"some/dir\"},\n+                    //new object[] { \"\", \"\", \"\", \"\\\"some/dir/with spaces\\\"\" },","path":"test/Microsoft.DotNet.Tools.Publish.Tests/Microsoft.DotNet.Tools.Publish.Tests.cs","position":30,"original_position":30,"commit_id":"771b0b1eb14acf2f14e4832fd021380784ca3627","original_commit_id":"771b0b1eb14acf2f14e4832fd021380784ca3627","user":{"login":"brthor","id":14280892,"avatar_url":"https://avatars.githubusercontent.com/u/14280892?v=3","gravatar_id":"","url":"https://api.github.com/users/brthor","html_url":"https://github.com/brthor","followers_url":"https://api.github.com/users/brthor/followers","following_url":"https://api.github.com/users/brthor/following{/other_user}","gists_url":"https://api.github.com/users/brthor/gists{/gist_id}","starred_url":"https://api.github.com/users/brthor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brthor/subscriptions","organizations_url":"https://api.github.com/users/brthor/orgs","repos_url":"https://api.github.com/users/brthor/repos","events_url":"https://api.github.com/users/brthor/events{/privacy}","received_events_url":"https://api.github.com/users/brthor/received_events","type":"User","site_admin":false},"body":"Is this broken? Should we link an issue next to the commented out piece?","created_at":"2015-12-15T21:27:27Z","updated_at":"2015-12-15T21:27:27Z","html_url":"https://github.com/dotnet/cli/pull/508#discussion_r47701036","pull_request_url":"https://api.github.com/repos/dotnet/cli/pulls/508","_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments/47701036"},"html":{"href":"https://github.com/dotnet/cli/pull/508#discussion_r47701036"},"pull_request":{"href":"https://api.github.com/repos/dotnet/cli/pulls/508"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/cli/pulls/508","id":53740780,"html_url":"https://github.com/dotnet/cli/pull/508","diff_url":"https://github.com/dotnet/cli/pull/508.diff","patch_url":"https://github.com/dotnet/cli/pull/508.patch","issue_url":"https://api.github.com/repos/dotnet/cli/issues/508","number":508,"state":"open","locked":false,"title":"Dotnet publish tests","user":{"login":"Sridhar-MS","id":9423246,"avatar_url":"https://avatars.githubusercontent.com/u/9423246?v=3","gravatar_id":"","url":"https://api.github.com/users/Sridhar-MS","html_url":"https://github.com/Sridhar-MS","followers_url":"https://api.github.com/users/Sridhar-MS/followers","following_url":"https://api.github.com/users/Sridhar-MS/following{/other_user}","gists_url":"https://api.github.com/users/Sridhar-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Sridhar-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sridhar-MS/subscriptions","organizations_url":"https://api.github.com/users/Sridhar-MS/orgs","repos_url":"https://api.github.com/users/Sridhar-MS/repos","events_url":"https://api.github.com/users/Sridhar-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Sridhar-MS/received_events","type":"User","site_admin":false},"body":"- Basic test infrastructure for writing test in the CLI repo.\r\n- Basic tests for dotnet-publish. Acts an example to help folks add more tests.\r\n- Use FluentAssertions for asserting conditions.\r\n- Ported the TempDirectory code from Roslyn with automatic deletion of files.\r\n- Created the runtests script which will run all the xunit tests.\r\n- Removed the smoke tests.\r\n","created_at":"2015-12-15T18:13:07Z","updated_at":"2015-12-15T21:27:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5dfe126127c0c6dccea9cce281c54e3d42e45da","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/cli/pulls/508/commits","review_comments_url":"https://api.github.com/repos/dotnet/cli/pulls/508/comments","review_comment_url":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/508/comments","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/771b0b1eb14acf2f14e4832fd021380784ca3627","head":{"label":"Sridhar-MS:publish-tests2","ref":"publish-tests2","sha":"771b0b1eb14acf2f14e4832fd021380784ca3627","user":{"login":"Sridhar-MS","id":9423246,"avatar_url":"https://avatars.githubusercontent.com/u/9423246?v=3","gravatar_id":"","url":"https://api.github.com/users/Sridhar-MS","html_url":"https://github.com/Sridhar-MS","followers_url":"https://api.github.com/users/Sridhar-MS/followers","following_url":"https://api.github.com/users/Sridhar-MS/following{/other_user}","gists_url":"https://api.github.com/users/Sridhar-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Sridhar-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sridhar-MS/subscriptions","organizations_url":"https://api.github.com/users/Sridhar-MS/orgs","repos_url":"https://api.github.com/users/Sridhar-MS/repos","events_url":"https://api.github.com/users/Sridhar-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Sridhar-MS/received_events","type":"User","site_admin":false},"repo":{"id":46438948,"name":"cli","full_name":"Sridhar-MS/cli","owner":{"login":"Sridhar-MS","id":9423246,"avatar_url":"https://avatars.githubusercontent.com/u/9423246?v=3","gravatar_id":"","url":"https://api.github.com/users/Sridhar-MS","html_url":"https://github.com/Sridhar-MS","followers_url":"https://api.github.com/users/Sridhar-MS/followers","following_url":"https://api.github.com/users/Sridhar-MS/following{/other_user}","gists_url":"https://api.github.com/users/Sridhar-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Sridhar-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sridhar-MS/subscriptions","organizations_url":"https://api.github.com/users/Sridhar-MS/orgs","repos_url":"https://api.github.com/users/Sridhar-MS/repos","events_url":"https://api.github.com/users/Sridhar-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Sridhar-MS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sridhar-MS/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":true,"url":"https://api.github.com/repos/Sridhar-MS/cli","forks_url":"https://api.github.com/repos/Sridhar-MS/cli/forks","keys_url":"https://api.github.com/repos/Sridhar-MS/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sridhar-MS/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sridhar-MS/cli/teams","hooks_url":"https://api.github.com/repos/Sridhar-MS/cli/hooks","issue_events_url":"https://api.github.com/repos/Sridhar-MS/cli/issues/events{/number}","events_url":"https://api.github.com/repos/Sridhar-MS/cli/events","assignees_url":"https://api.github.com/repos/Sridhar-MS/cli/assignees{/user}","branches_url":"https://api.github.com/repos/Sridhar-MS/cli/branches{/branch}","tags_url":"https://api.github.com/repos/Sridhar-MS/cli/tags","blobs_url":"https://api.github.com/repos/Sridhar-MS/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sridhar-MS/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sridhar-MS/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sridhar-MS/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sridhar-MS/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Sridhar-MS/cli/languages","stargazers_url":"https://api.github.com/repos/Sridhar-MS/cli/stargazers","contributors_url":"https://api.github.com/repos/Sridhar-MS/cli/contributors","subscribers_url":"https://api.github.com/repos/Sridhar-MS/cli/subscribers","subscription_url":"https://api.github.com/repos/Sridhar-MS/cli/subscription","commits_url":"https://api.github.com/repos/Sridhar-MS/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sridhar-MS/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sridhar-MS/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sridhar-MS/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sridhar-MS/cli/contents/{+path}","compare_url":"https://api.github.com/repos/Sridhar-MS/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sridhar-MS/cli/merges","archive_url":"https://api.github.com/repos/Sridhar-MS/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sridhar-MS/cli/downloads","issues_url":"https://api.github.com/repos/Sridhar-MS/cli/issues{/number}","pulls_url":"https://api.github.com/repos/Sridhar-MS/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Sridhar-MS/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Sridhar-MS/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sridhar-MS/cli/labels{/name}","releases_url":"https://api.github.com/repos/Sridhar-MS/cli/releases{/id}","created_at":"2015-11-18T18:31:06Z","updated_at":"2015-11-18T18:31:13Z","pushed_at":"2015-12-15T20:17:16Z","git_url":"git://github.com/Sridhar-MS/cli.git","ssh_url":"git@github.com:Sridhar-MS/cli.git","clone_url":"https://github.com/Sridhar-MS/cli.git","svn_url":"https://github.com/Sridhar-MS/cli","homepage":"http://dotnet.github.io/","size":14080,"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":"ab5b16c00c9c7dc930231eefeef056d3579d69c9","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":43568107,"name":"cli","full_name":"dotnet/cli","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/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":false,"url":"https://api.github.com/repos/dotnet/cli","forks_url":"https://api.github.com/repos/dotnet/cli/forks","keys_url":"https://api.github.com/repos/dotnet/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/cli/teams","hooks_url":"https://api.github.com/repos/dotnet/cli/hooks","issue_events_url":"https://api.github.com/repos/dotnet/cli/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/cli/events","assignees_url":"https://api.github.com/repos/dotnet/cli/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/cli/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/cli/tags","blobs_url":"https://api.github.com/repos/dotnet/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/cli/languages","stargazers_url":"https://api.github.com/repos/dotnet/cli/stargazers","contributors_url":"https://api.github.com/repos/dotnet/cli/contributors","subscribers_url":"https://api.github.com/repos/dotnet/cli/subscribers","subscription_url":"https://api.github.com/repos/dotnet/cli/subscription","commits_url":"https://api.github.com/repos/dotnet/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/cli/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/cli/merges","archive_url":"https://api.github.com/repos/dotnet/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/cli/downloads","issues_url":"https://api.github.com/repos/dotnet/cli/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/cli/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/cli/releases{/id}","created_at":"2015-10-02T18:03:15Z","updated_at":"2015-12-15T20:05:36Z","pushed_at":"2015-12-15T20:59:51Z","git_url":"git://github.com/dotnet/cli.git","ssh_url":"git@github.com:dotnet/cli.git","clone_url":"https://github.com/dotnet/cli.git","svn_url":"https://github.com/dotnet/cli","homepage":"http://dotnet.github.io/","size":14539,"stargazers_count":162,"watchers_count":162,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":196,"forks":35,"open_issues":196,"watchers":162,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/508"},"html":{"href":"https://github.com/dotnet/cli/pull/508"},"issue":{"href":"https://api.github.com/repos/dotnet/cli/issues/508"},"comments":{"href":"https://api.github.com/repos/dotnet/cli/issues/508/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/cli/pulls/508/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/cli/pulls/508/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/cli/statuses/771b0b1eb14acf2f14e4832fd021380784ca3627"}}}}