@@ -155,16 +155,14 @@ public void GetsReferences(
155
155
} ;
156
156
157
157
// When
158
- IReadOnlyList < string > references = analyzer . Build ( options ) . First ( ) . References ;
158
+ IAnalyzerResults results = analyzer . Build ( options ) ;
159
159
160
160
// Then
161
- references . ShouldNotBeNull ( log . ToString ( ) ) ;
162
- references . ShouldContain (
163
- x => x . Contains ( "mscorlib" ) ,
164
- log . ToString ( ) + System . Environment . NewLine + "References:" + string . Join ( System . Environment . NewLine , references ) ) ;
161
+ results . ShouldAllBe ( x => x . References != null , log . ToString ( ) ) ;
162
+ results . Any ( x => x . References . Any ( r => r . Contains ( "mscorlib" ) ) ) . ShouldBeTrue ( log . ToString ( ) ) ;
165
163
if ( projectFile . Contains ( "PackageReference" ) )
166
164
{
167
- references . ShouldContain ( x => x . EndsWith ( "NodaTime.dll" ) , log . ToString ( ) ) ;
165
+ results . Any ( x => x . References . Any ( r => r . EndsWith ( "NodaTime.dll" ) ) ) . ShouldBeTrue ( log . ToString ( ) ) ;
168
166
}
169
167
}
170
168
@@ -246,7 +244,7 @@ public void MultiTargetingBuildAllTargetFrameworksGetsSourceFiles()
246
244
// Then
247
245
// Multi-targeting projects product an extra result with an empty target framework that holds some MSBuild properties (I.e. the "outer" build)
248
246
results . Count . ShouldBe ( 3 ) ;
249
- results . TargetFrameworks . ShouldBe ( new [ ] { "net462" , "netstandard2.0" , string . Empty } , ignoreOrder : false , log . ToString ( ) ) ;
247
+ results . TargetFrameworks . ShouldBe ( new [ ] { string . Empty , "net462" , "netstandard2.0" } , ignoreOrder : false , log . ToString ( ) ) ;
250
248
results [ string . Empty ] . SourceFiles . ShouldBeEmpty ( ) ;
251
249
new [ ]
252
250
{
0 commit comments