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