@@ -549,7 +549,7 @@ public async Task CloudBuildVariables_SetInCI(IReadOnlyDictionary<string, string
549549 }
550550
551551 // Assert that env variables were also set in context of the build.
552- Assert . True ( buildResult . LoggedEvents . Any ( e => string . Equals ( e . Message , $ "n1=v1", StringComparison . OrdinalIgnoreCase ) ) ) ;
552+ Assert . Contains ( buildResult . LoggedEvents , e => string . Equals ( e . Message , $ "n1=v1", StringComparison . OrdinalIgnoreCase ) ) ;
553553
554554 versionOptions . CloudBuild . SetVersionVariables = false ;
555555 this . WriteVersionFile ( versionOptions ) ;
@@ -814,7 +814,7 @@ public async Task AssemblyInfo_NotProducedWithoutCodeDomProvider()
814814 Assert . Equal ( BuildResultCode . Failure , result . BuildResult . OverallResult ) ;
815815 string versionCsFilePath = Path . Combine ( this . projectDirectory , result . BuildResult . ProjectStateAfterBuild . GetPropertyValue ( "VersionSourceFile" ) ) ;
816816 Assert . False ( File . Exists ( versionCsFilePath ) ) ;
817- Assert . Equal ( 1 , result . LoggedEvents . OfType < BuildErrorEventArgs > ( ) . Count ( ) ) ;
817+ Assert . Single ( result . LoggedEvents . OfType < BuildErrorEventArgs > ( ) ) ;
818818 }
819819
820820 /// <summary>
@@ -862,7 +862,6 @@ public async Task AssemblyInfo_SuppressedImplicitlyByTargetExt()
862862 /// information is set correctly.
863863 /// </summary>
864864 [ Fact ]
865- [ Trait ( "TestCategory" , "FailsOnAzurePipelines" ) ]
866865 public async Task NativeVersionInfo_CreateNativeResourceDll ( )
867866 {
868867 this . testProject = this . CreateNativeProjectRootElement ( this . projectDirectory , "test.vcxproj" ) ;
@@ -1006,6 +1005,7 @@ private async Task<BuildResults> BuildAsync(string target = Targets.GetBuildVers
10061005 {
10071006 var eventLogger = new MSBuildLogger { Verbosity = LoggerVerbosity . Minimal } ;
10081007 var loggers = new ILogger [ ] { eventLogger } ;
1008+ this . testProject . Save ( ) ; // persist generated project on disk for analysis
10091009 var buildResult = await this . buildManager . BuildAsync (
10101010 this . Logger ,
10111011 this . projectCollection ,
@@ -1037,6 +1037,7 @@ where name.StartsWith(prefix, StringComparison.Ordinal)
10371037 {
10381038 var targetsFile = ProjectRootElement . Create ( XmlReader . Create ( stream ) , this . projectCollection ) ;
10391039 targetsFile . FullPath = Path . Combine ( this . RepoPath , name . Substring ( prefix . Length ) ) ;
1040+ targetsFile . Save ( ) ; // persist files on disk
10401041 }
10411042 }
10421043 }
0 commit comments