Addressing code review comments.

This commit is contained in:
Livar Cunha 2016-12-08 20:06:55 -08:00
parent bb1bceb8bb
commit 9bddb5bac7
2 changed files with 8 additions and 7 deletions

View file

@ -80,9 +80,10 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
[Fact] [Fact]
public void ItHasErrorWhenMigratingAProjectJsonWithoutAFrameworks() public void ItHasErrorWhenMigratingAProjectJsonWithoutAFrameworks()
{ {
var testAppName = "TestLibraryWithProjectFileWithoutFrameworks"; var testInstance = TestAssets.Get(
var testInstance = TestAssets.Get(testAppName) "NonRestoredTestProjects",
.CreateInstance(testAppName) "TestLibraryWithProjectFileWithoutFrameworks")
.CreateInstance()
.WithSourceFiles(); .WithSourceFiles();
var testProjectDirectory = testInstance.Root.FullName; var testProjectDirectory = testInstance.Root.FullName;
@ -98,9 +99,9 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
var projectReport = report.ProjectMigrationReports.First(); var projectReport = report.ProjectMigrationReports.First();
var errorMessage = projectReport.Errors.First().GetFormattedErrorMessage(); projectReport.Errors.First().GetFormattedErrorMessage()
errorMessage.Should().Contain("MIGRATE1013::No Project:"); .Should().Contain("MIGRATE1013::No Project:")
errorMessage.Should().Contain($"The project.json specifies no target frameworks in {testProjectDirectory}"); .And.Contain($"The project.json specifies no target frameworks in {testProjectDirectory}");
} }
private IEnumerable<string> EnumerateFilesWithRelativePath(string testProjectDirectory) private IEnumerable<string> EnumerateFilesWithRelativePath(string testProjectDirectory)