Split test in two
This commit is contained in:
parent
45ef209ac4
commit
ec5f88e994
1 changed files with 7 additions and 2 deletions
|
@ -18,7 +18,7 @@ namespace Microsoft.DotNet.ProjectModel.Tests
|
||||||
private static string ExportFilesRoot=> Path.Combine(RepoRoot, "TestAssets", "LockFiles", "ExportFiles");
|
private static string ExportFilesRoot=> Path.Combine(RepoRoot, "TestAssets", "LockFiles", "ExportFiles");
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void TestValidPatching()
|
public void TestExportFileIsParsed()
|
||||||
{
|
{
|
||||||
var lockFilePath = GetLockFilePath("valid");
|
var lockFilePath = GetLockFilePath("valid");
|
||||||
var lockFile = LockFileReader.Read(lockFilePath);
|
var lockFile = LockFileReader.Read(lockFilePath);
|
||||||
|
@ -35,8 +35,13 @@ namespace Microsoft.DotNet.ProjectModel.Tests
|
||||||
export.TargetFramework.Should().NotBeNull();
|
export.TargetFramework.Should().NotBeNull();
|
||||||
AssertTargetLibrary(export);
|
AssertTargetLibrary(export);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
lockFile.Targets.Count.Should().Be(3);
|
[Fact]
|
||||||
|
public void TestLockFileIsPatchedWithExportData()
|
||||||
|
{
|
||||||
|
var lockFilePath = GetLockFilePath("valid");
|
||||||
|
var lockFile = LockFileReader.Read(lockFilePath);
|
||||||
|
|
||||||
// check lock file structure is similar to export structure
|
// check lock file structure is similar to export structure
|
||||||
foreach (var target in lockFile.Targets)
|
foreach (var target in lockFile.Targets)
|
||||||
|
|
Loading…
Reference in a new issue