File tree Expand file tree Collapse file tree
TestData/UnusedPackageReferenceWithMetaPackage/Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,6 +318,14 @@ public Task UnusedPackageReferenceWithSdk()
318318 ] ) ;
319319 }
320320
321+ [ TestMethod ]
322+ public Task UnusedPackageReferenceWithMetaPackage ( )
323+ {
324+ return RunMSBuildAsync (
325+ projectFile : "Test/Test.csproj" ,
326+ expectedWarnings : [ ] ) ;
327+ }
328+
321329 [ TestMethod ]
322330 public Task UnusedPackageReferenceNoWarn ( )
323331 {
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Frozen ;
3+
4+ namespace Test
5+ {
6+ public class Foo
7+ {
8+ public static FrozenSet < int > SomeSet ( ) => FrozenSet . ToFrozenSet ( Array . Empty < int > ( ) ) ;
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ <Project Sdk =" MSTest.Sdk" >
2+
3+ <PropertyGroup >
4+ <TargetFramework >net8.0</TargetFramework >
5+ <ExplicitUsings >enable</ExplicitUsings >
6+ </PropertyGroup >
7+
8+ <ItemGroup >
9+ <PackageReference Include =" MSTest" Version =" 4.1.0" />
10+ </ItemGroup >
11+
12+ </Project >
You can’t perform that action at this time.
0 commit comments