public void LockFile_GetTarget_WithAlias_ReturnsCorrectLockFileTarget() { // Arrange var expectedJson = ResourceTestUtility.GetResource("NuGet.ProjectModel.Test.compiler.resources.sample.assets.json", typeof(LockFileTests)); var lockFile = new LockFileFormat().Parse(expectedJson, Path.GetTempPath()); NuGetFramework nuGetFramework = NuGetFramework.ParseComponents(".NETCoreApp,Version=v5.0", "Windows,Version=7.0"); // Act var target = lockFile.GetTarget("net5.0", runtimeIdentifier: null); // Assert target.TargetFramework.Should().Be(nuGetFramework); }