File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/Microsoft.NET.Sdk.Razor.Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ public void Build_ProducesDepsFileWithCompilationContext_ButNoReferences()
113
113
depsFile . Should ( ) . Exist ( ) ;
114
114
var dependencyContext = ReadDependencyContext ( depsFile . FullName ) ;
115
115
116
- // Ensure some compile references exist
117
- var packageReference = dependencyContext . CompileLibraries . First ( l => l . Name == "System.Runtime.CompilerServices.Unsafe" ) ;
118
- packageReference . Assemblies . Should ( ) . NotBeEmpty ( ) ;
116
+ // Ensure compile references from a PrivateAssets="all" PackageReference don't exist
117
+ var packageReference = dependencyContext . CompileLibraries . FirstOrDefault ( l => l . Name == "System.Runtime.CompilerServices.Unsafe" , defaultValue : null ) ;
118
+ packageReference . Should ( ) . BeNull ( ) ;
119
119
120
120
var projectReference = dependencyContext . CompileLibraries . First ( l => l . Name == TestProjectName ) ;
121
121
projectReference . Assemblies . Should ( ) . NotBeEmpty ( ) ;
You can’t perform that action at this time.
0 commit comments