Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Aug 1, 2024
1 parent a53fbfc commit 4d856cb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/Buildalyzer.Tests/Integration/SimpleProjectsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -716,12 +716,15 @@ public void GetsProjectFileAsAdditionalFile()
using var log = new StringWriter();
IProjectAnalyzer analyzer = GetProjectAnalyzer(@"ProjectFileAsAdditionalFile\ProjectFileAsAdditionalFile.csproj", log);

// When
var builds = analyzer.Build();

// When + then
builds.First().AdditionalFiles
.Select(Path.GetFileName)
.Should().BeEquivalentTo("ProjectFileAsAdditionalFile.csproj");
// Then
var v6_0 = builds.Single(b => b.TargetFramework == "net6.0");
var v5_0 = builds.Single(b => b.TargetFramework == "net5.0");

v6_0.AdditionalFiles.Select(Path.GetFileName).Should().BeEquivalentTo("ProjectFileAsAdditionalFile.csproj");
v5_0.AdditionalFiles.Select(Path.GetFileName).Should().BeEquivalentTo("ProjectFileAsAdditionalFile.csproj");
}

[Test]
Expand Down

0 comments on commit 4d856cb

Please sign in to comment.