Addressing code review comments.
This commit is contained in:
parent
bb1bceb8bb
commit
9bddb5bac7
2 changed files with 8 additions and 7 deletions
|
@ -5,4 +5,4 @@
|
||||||
"type": "build"
|
"type": "build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue