Skip to content

Commit 41c3418

Browse files
committed
Update ConditionalDependenciesTests for package reference
Modified the test to assert that "PkgOnlyNet9" is not included in the references, reflecting a focus on a single target framework. The previous assertion for its presence has been commented out.
1 parent f04da46 commit 41c3418

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/AXSharp.compiler/tests/AXSharp.CompilerTests/ConditionalDependenciesTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public void should_respect_itemgroup_condition_targetframework()
4949
var target = (CsProject)ax.TargetProject;
5050
var refs = target.LoadReferences().OfType<PackageReference>().ToList();
5151
Assert.Contains(refs, r => r.Include == "PkgOnlyNet8");
52-
Assert.Contains(refs, r => r.Include == "PkgOnlyNet9");
52+
// Assert.Contains(refs, r => r.Include == "PkgOnlyNet9"); we only use single target framework in this test, so net9.0 package should not be included
53+
Assert.DoesNotContain(refs, r => r.Include == "PkgOnlyNet9");
5354
}
5455

5556
[Fact]

0 commit comments

Comments
 (0)