599 references to AssertLogContains
Microsoft.Build.Engine.OM.UnitTests (25)
Definition\Project_Tests.cs (20)
113mockLogger.AssertLogContains("NewLineEvalAsEmpty"); 114mockLogger.AssertLogContains("TabEvalAsEmpty"); 115mockLogger.AssertLogContains("CarriageReturnEvalAsEmpty"); 142mockLogger.AssertLogContains("IHaveBeenLogged"); 170mockLogger.AssertLogContains("IHaveBeenLogged"); 415logger.AssertLogContains("MSB4210"); // selfimport 450logger.AssertLogContains("MSB4210"); // selfimport 486logger.AssertLogContains("MSB4011"); // duplicate import 529logger.AssertLogContains("MSB4011"); // duplicate import 2446logger.AssertLogContains("MSB4177"); 2470logger.AssertLogContains("MSB4177"); 2540logger.AssertLogContains("MSB4177"); 3922logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to false condition; ( \'$(Something)\' == \'nothing\' ) was evaluated as ( \'\' == \'nothing\' )."); 3963logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4008logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being empty."); 4055logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being invalid."); 4095logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the expression evaluating to an empty string."); 4138logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file not existing."); 4181logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4227logger.AssertLogContains($"Importing project \"{pre1.FullPath}\" into project \"{pre2.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}).");
Definition\ProjectItem_Tests.cs (3)
843collectionLogger.AssertLogContains("MSB5029"); 969collectionLogger.AssertLogContains("MSB5029"); 970collectionLogger.AssertLogContains(testProjectFile);
Definition\ProjectItemDefinition_Tests.cs (1)
221logger.AssertLogContains("a.foo;a.bar/m1");
Instance\ProjectInstance_Tests.cs (1)
387logger.AssertLogContains("[OK]");
Microsoft.Build.Engine.UnitTests (535)
BackEnd\BatchingEngine_Tests.cs (10)
271log.AssertLogContains("[AToBBatched: a;b]"); 310log.AssertLogContains("Item Before:dev 1"); 311log.AssertLogContains("Item Before:prod 1"); 367log.AssertLogContains("[a=a1 b=]"); 368log.AssertLogContains("[a= b=b1]"); 393log.AssertLogContains("[]"); 457log.AssertLogContains("AToZBatched: a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z"); 458log.AssertLogContains("ZToABatched: z;y;x;w;v;u;t;s;r;q;p;o;n;m;l;k;j;i;h;g;f;e;d;c;b;a"); 492logger.AssertLogContains("[i1;i2 ]", "[i3 m1]"); 527logger.AssertLogContains("MSB4036");
BackEnd\BuildManager_Tests.cs (55)
137_logger.AssertLogContains("[success]"); 254_logger.AssertLogContains("[success]"); 571_logger.AssertLogContains("[success]"); 611_logger.AssertLogContains("[success]"); 655_logger.AssertLogContains("[success]"); 717_logger.AssertLogContains("[success]"); 787_logger.AssertLogContains("[success]"); 839_logger.AssertLogContains("[success]"); 936_logger.AssertLogContains("[success]"); 960_logger.AssertLogContains("[errormessage]"); 997logger.AssertLogContains("[Warn]"); 998logger.AssertLogContains("[Message]"); 1000logger.AssertLogContains(highMessage); 1001logger.AssertLogContains(normalMessage); 1002logger.AssertLogContains(lowMessage); 1046_logger.AssertLogContains("[errormessage]"); 1047_logger.AssertLogContains("[warn]"); 1080_logger.AssertLogContains("[errormessage]"); 1081_logger.AssertLogContains("[warn]"); 1082_logger.AssertLogContains("[message]"); 1281_logger.AssertLogContains("[success 1]"); 1347_logger.AssertLogContains("[success 1]"); 1348_logger.AssertLogContains("[success 2]"); 1387_logger.AssertLogContains("[success 1]"); 1388_logger.AssertLogContains("[success 2]"); 2054_logger.AssertLogContains("Value:Baz"); 2070_logger.AssertLogContains("Value:FOO"); 2201_logger.AssertLogContains("[success]"); 2230_logger.AssertLogContains("[success]"); 2287_logger.AssertLogContains("[overridden]"); 2288_logger.AssertLogContains("[unmodified]"); 2289_logger.AssertLogContains("[new]"); 2291_logger.AssertLogContains("[foo2;foo21]"); 2292_logger.AssertLogContains("[baz]"); 2326_logger.AssertLogContains("[overridden]"); 2327_logger.AssertLogContains("[unmodified]"); 2478_logger.AssertLogContains("[Build]"); 2479_logger.AssertLogContains("[Build2]"); 2480_logger.AssertLogContains("[AT1]"); 2481_logger.AssertLogContains("[AT2]"); 2750_logger.AssertLogContains(skippedMessage); 2846_logger.AssertLogContains("Error in Target2"); 2847_logger.AssertLogContains("Target 3"); 2848_logger.AssertLogContains("Target 4"); 2853_logger.AssertLogContains(skippedMessage1); 2942_logger.AssertLogContains("Error 1"); 2943_logger.AssertLogContains("Error 2"); 2948_logger.AssertLogContains(skippedMessage1); 2952_logger.AssertLogContains(skippedMessage2); 3377_logger.AssertLogContains("[BaseValue]"); 3378_logger.AssertLogContains("[BaseItem]"); 3385_logger.AssertLogContains("[NewValue]"); 3386_logger.AssertLogContains("[BaseItem;NewItem]"); 4429_logger.AssertLogContains("MSB4040"); 4441_logger.AssertLogContains("MSB4040");
BackEnd\IntrinsicTask_Tests.cs (64)
209logger.AssertLogContains("[v1][v2]"); 230logger.AssertLogContains("MSB4191"); // Metadata not allowed 934logger.AssertLogContains("[a1][b1]"); 956logger.AssertLogContains("MSB4191"); // Metadata not allowed 1088logger.AssertLogContains("MSB4191"); // Metadata not allowed 1172logger.AssertLogContains("MSB4191"); 1227logger.AssertLogContains("[#a1#*#a2#]"); 1250logger.AssertLogContains("[v0]"); 1286logger.AssertLogContains("start:[v0]", "end:[v2]", "final:[v2]"); 1341logger.AssertLogContains("[p1]"); 1363logger.AssertLogContains("[p1]"); 1383logger.AssertLogContains("[i1]"); 1405logger.AssertLogContains("[i1]"); 1430logger.AssertLogContains(new string[] { "start:[1.in]", "end:[1.in]", "start:[2.in]", "end:[2.in]" }); 1455logger.AssertLogContains(new string[] { "start:[]", "end:[p1]", "start:[]", "end:[p1]" }); 1491logger.AssertLogContains(new string[] { "start:[]", "end:[" + newFiles.ElementAt(1) + "]", "final:[" + oldFiles.First() + ";" + newFiles.ElementAt(1) + "]" }); 1534logger.AssertLogContains(new string[] { "start:[]", "end:[" + newFiles.ElementAt(1) + "]", "final:[" + newFiles.ElementAt(1) + "]" }); 1589logger.AssertLogContains(new string[] { "start:[" + newInput + "]", 1693logger.AssertLogContains(new string[] { "final:[a;b;d]" }); 2303logger.AssertLogContains("[]"); 2336logger.AssertLogContains("[]"); 2373logger.AssertLogContains("[a2;a1;a3][b1]"); 2410logger.AssertLogContains("[]"); 2447logger.AssertLogContains("[a1;a1][a1;a1]"); 2485logger.AssertLogContains("[m2]"); 2516logger.AssertLogContains("[m3]"); 2571logger.AssertLogContains(new string[] { "start:[1.in]", "end:[]", "start:[2.in]", "end:[]" }); 2597logger.AssertLogContains(new string[] { "start:[j1]", "end:[]", "start:[j1]", "end:[]" }); 2641logger.AssertLogContains(new string[] { "in target:[a][a]", "after target:[a;b;c][a;b;c]" }); 2684logger.AssertLogContains(new string[] { "Props During t1:[prop]", "Props During t2:[prop]", "Props After t1;t2:[]", "Props During Build:[prop]" }); 2685logger.AssertLogContains(new string[] { "Items During t1:[item]", "Items During t2:[item]", "Items After t1;t2:[]", "Items During Build:[item]" }); 2728logger.AssertLogContains(new string[] { "Props During t1:[prop]", "Props During t2:[prop]", "Props After t1;t2:[]", "Props During Build:[prop]" }); 2729logger.AssertLogContains(new string[] { "Items During t1:[item]", "Items During t2:[item]", "Items After t1;t2:[]", "Items During Build:[item]" }); 2772logger.AssertLogContains(new string[] { "Props During t1:[prop]", "Props During t2:[prop]", "Props After t1;t2:[]", "Props During Build:[prop]" }); 2773logger.AssertLogContains(new string[] { "Items During t1:[item]", "Items During t2:[item]", "Items After t1;t2:[]", "Items During Build:[item]" }); 2817logger.AssertLogContains(new string[] { "in target:[a][a]", "after target:[a;b;c][a;b;c]" }); 2890logger.AssertLogContains(@"[item1|v1|v2|v3]"); 2940logger.AssertLogContains(new string[] { "[m2][n1]" }); 3170logger.AssertLogContains(@"[a.idl|dlldatadir\a_dlldata.c|headerdir\a.h|tlbdir\a.tlb|proxydir\a_p.c|interfacedir\a_i.c]", 3203logger.AssertLogContains("[m1]"); 3249logger.AssertLogContains("[m0][n0]", "[m1][n1]"); 3289logger.AssertLogContains("[a.dll]->[.dll]"); 3290logger.AssertLogContains("[a.pdb]->[.pdb]"); 3317logger.AssertLogContains("[a.dll]->[.dll]"); 3318logger.AssertLogContains("[a.dll.pdb]->[.pdb]"); 3319logger.AssertLogContains("[a.dll.pdb.pdb]->[.pdb]"); 3363logger.AssertLogContains("[a.dll]->[.dll]->[]"); 3364logger.AssertLogContains( 3408logger.AssertLogContains("[imported]", "[]"); 3448logger.AssertLogContains("[m1]"); 3485logger.AssertLogContains(new string[] { "start:[]", "end:[--1.in]", "start:[]", "end:[--2.in]", "final:[--2.in]" }); 3511logger.AssertLogContains(new string[] { "end:[--2.in]" }); 3582logger.AssertLogContains(new string[] { "final:[" + files.First() + "]" }); 3616logger.AssertLogContains("[2]"); 3647logger.AssertLogContains("[2]"); 3732logger.AssertLogContains("[2]"); 3761logger.AssertLogContains("[2]"); 3798logger.AssertLogContains("[a;b;c = m4]"); 3826logger.AssertLogContains("[b = m1]"); 3827logger.AssertLogContains("[a;c = m3]"); 3855logger.AssertLogContains("[a = m3]"); 3856logger.AssertLogContains("[b = m1]"); 3857logger.AssertLogContains("[c = m2]"); 3894logger.AssertLogContains("[a;b;c=]");
BackEnd\MSBuild_Tests.cs (48)
266logger.AssertLogContains("Hello from foo.csproj"); 304logger.AssertLogContains("Hello from foo.csproj"); 352logger.AssertLogContains("Hello from foo.csproj"); 398logger.AssertLogContains("Hello from foo.csproj"); 685logger.AssertLogContains("a=[a]"); 686logger.AssertLogContains("b=[b]"); 687logger.AssertLogContains("c=[]"); 688logger.AssertLogContains("d=[]"); 689logger.AssertLogContains("e=[e]"); 690logger.AssertLogContains("f=[f]"); 691logger.AssertLogContains("g=[]"); 752logger.AssertLogContains("iout1=[]"); 753logger.AssertLogContains("iout2=[]"); 754logger.AssertLogContains("iout3=[]"); 755logger.AssertLogContains("iout4=[]"); 756logger.AssertLogContains("iout5=[a/b.foo]"); 757logger.AssertLogContains($"iout6=[a{Path.DirectorySeparatorChar}b.foo]"); 758logger.AssertLogContains("iin1=[]"); 759logger.AssertLogContains("iin2=[]"); 760logger.AssertLogContains("iin3=[]"); 761logger.AssertLogContains("iin4=[]"); 762logger.AssertLogContains("iin5=[a/b.foo]"); 763logger.AssertLogContains($"iin6=[a{Path.DirectorySeparatorChar}b.foo]"); 799logger.AssertLogContains("iout1=[a/b.foo;c/d.foo;g/h.foo]"); 800logger.AssertLogContains("iout1-target-paths=[b.foo;d.foo;h.foo]"); 833logger.AssertLogContains("iin1=[a/b.foo;c/d.foo;g/h.foo;g/h.foo]"); 834logger.AssertLogContains("iin1-target-paths=[;b.foo;b.foo;d.foo]"); 836logger.AssertLogContains(string.Format(ResourceUtilities.GetResourceString("ItemReferencingSelfInTarget"), "iin1", "Filename")); 837logger.AssertLogContains(string.Format(ResourceUtilities.GetResourceString("ItemReferencingSelfInTarget"), "iin1", "Extension")); 878logger.AssertLogContains("iin1=[a/b.foo;c/d.foo;g/h.foo]"); 879logger.AssertLogContains("iin1-target-paths=[b.foo;d.foo;h.foo]"); 1350logger.AssertLogContains(AssemblyResources.GetString("MSBuild.SkippingRemainingProjects")); 1352logger.AssertLogContains(AssemblyResources.GetString("MSBuild.NotBuildingInParallel")); 1358logger.AssertLogContains("SecondProject"); 1368logger.AssertLogContains(AssemblyResources.GetString("MSBuild.SkippingRemainingProjects")); 1377logger.AssertLogContains("SecondProject"); 1696logger.AssertLogContains("Proj2 T1 message"); 1697logger.AssertLogContains("Proj2 T2 message"); 1702logger.AssertLogContains("Proj2 T1 message"); 1703logger.AssertLogContains(AssemblyResources.GetString("MSBuild.SkippingRemainingTargets")); 1709logger.AssertLogContains("Proj2 T1 message"); 1710logger.AssertLogContains("Proj2 T2 message"); 1716logger.AssertLogContains("Proj2 T1 message"); 1717logger.AssertLogContains("Proj2 T2 message"); 1723logger.AssertLogContains("Proj2 T1 message"); 1730logger.AssertLogContains("Proj2 T1 message"); 1854logger.AssertLogContains("[foo.out]"); 1890logger.AssertLogContains("[foo.out]");
BackEnd\OnError_Tests.cs (2)
179l.AssertLogContains("[a1;a2][v1][v2]"); 596logger.AssertLogContains(String.Format(MockLogger.GetString("TaskReturnedFalseButDidNotLogError"), "FailingTask"));
BackEnd\Scheduler_Tests.cs (2)
718_logger.AssertLogContains("[success]"); 722_logger.AssertLogContains(reader.ReadLine());
BackEnd\TargetBuilder_Tests.cs (5)
332logger.AssertLogContains("[GFA;GFT;DFTA;GAFT]"); 389log.AssertLogContains("[t]"); 421log.AssertLogContains("[t]", "[a]", "[c]"); 444log.AssertLogContains("[t]"); 480log.AssertLogContains("[a]", "[t]", "[c]", "[t2]");
BackEnd\TargetEntry_Tests.cs (2)
654log.AssertLogContains("item2"); 659log.AssertLogContains("item1;item2");
BackEnd\TargetUpToDateChecker_Tests.cs (9)
128ml.AssertLogContains("Running Build target"); 324logger.AssertLogContains("SomeMetaThing"); 353logger.AssertLogContains("SomeMetaThing"); 382logger.AssertLogContains("1;2;3;4;5;6;7;8;9"); 383logger.AssertLogContains("a;b;c;d;e;f;g"); 412logger.AssertLogContains("1;2;3;4;5;6;7;8;9"); 413logger.AssertLogContains("a;b;c;d;e;f;g"); 447logger.AssertLogContains("foo.goo"); 448logger.AssertLogContains("foo1.goo");
BackEnd\TaskBuilder_Tests.cs (31)
85logger.AssertLogContains("MSB4036"); 138logger.AssertLogContains("Made it"); 200logger.AssertLogContains("MSB5021"); 244logger.AssertLogContains(new string[] { "final:[/assemblyresource:c.resx,barz]" }); 245logger.AssertLogContains(new string[] { ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskStarted", "CreateProperty") }); 246logger.AssertLogContains(new string[] { ResourceUtilities.FormatResourceStringStripCodeAndKeyword("PropertyOutputOverridden", "LinkSwitches", "/assemblyresource:a.resx,foo", "/assemblyresource:b.resx,bar") }); 247logger.AssertLogContains(new string[] { ResourceUtilities.FormatResourceStringStripCodeAndKeyword("PropertyOutputOverridden", "LinkSwitches", "/assemblyresource:b.resx,bar", "/assemblyresource:c.resx,barz") }); 301logger.AssertLogContains(new string[] { "final:[/assemblyresource:c.resx,barz]" }); 303logger.AssertLogContains(new string[] { ResourceUtilities.FormatResourceStringStripCodeAndKeyword("PropertyOutputOverridden", "LinkSwitches", "/assemblyresource:a.resx,foo", "/assemblyresource:b.resx,bar") }); 304logger.AssertLogContains(new string[] { ResourceUtilities.FormatResourceStringStripCodeAndKeyword("PropertyOutputOverridden", "LinkSwitches", "/assemblyresource:b.resx,bar", "/assemblyresource:c.resx,barz") }); 368logger.AssertLogContains("Property1=[foo]"); 369logger.AssertLogContains("Property2=[foo]"); 370logger.AssertLogContains("MetadataProperty=[foo]"); 371logger.AssertLogContains("TestItem1=[foo]"); 372logger.AssertLogContains("TestItem2=[foo]"); 373logger.AssertLogContains("MetadataItem=[foo]"); 419logger.AssertLogContains("[start:]"); 420logger.AssertLogContains("[0:true]"); 421logger.AssertLogContains("[1:false]"); 422logger.AssertLogContains("[p:false]"); 423logger.AssertLogContains("[2:true]"); 424logger.AssertLogContains("[3:true]"); 425logger.AssertLogContains("[4:false]"); 426logger.AssertLogContains("[4:false]"); 457logger.AssertLogContains(slashAndBracket); 485logger.AssertLogContains("MSB3031"); 509logger.AssertLogContains("MSB3031"); 540logger.AssertLogContains("[.ext]"); 571logger.AssertLogContains("[||illegal||]"); 595logger.AssertLogContains("[foo: ]"); 619logger.AssertLogContains("[foo: ]");
BackEnd\TaskExecutionHost_Tests.cs (4)
1031_logger.AssertLogContains("MSB4036"); 1051ml.AssertLogContains("a=b"); 1083ml.AssertLogContains("MSB4018"); 1088ml.AssertLogContains(testExceptionMessage);
BackEnd\TaskHost_Tests.cs (2)
731mockLogger.AssertLogContains($"{item.Key}: '{item.Value}'"); 759mockLogger.AssertLogContains("Global property count: 0");
BackEnd\TaskRegistry_Tests.cs (1)
683logger.AssertLogContains("MSB4275");
ChangeWaves_Tests.cs (1)
73log.AssertLogContains(warningCodesLogShouldContain);
Construction\SolutionFilter_Tests.cs (1)
147logger.AssertLogContains(new string[] { "SimpleProjectBuilt" });
Construction\SolutionProjectGenerator_Tests.cs (8)
638logger.AssertLogContains(logoutputs[i]); 660logger1.AssertLogContains(".[11.0]. .[4.0]."); 661logger1.AssertLogContains(String.Format(".[{0}]. .[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion)); 728logger.AssertLogContains(String.Format(".[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion)); 2051logger.AssertLogContains("MSB4126"); 2134logger.AssertLogContains("MSB4203"); 2222logger.AssertLogContains("MSB4204"); 2620mockLogger.AssertLogContains("Message from MyTarget");
Definition\ItemDefinitionGroup_Tests.cs (35)
350logger.AssertLogContains("[{a.cpp}{DEBUG;CODEANALYSIS}]"); // Unexpected value after evaluation 380logger.AssertLogContains("[{a.cpp}{DEBUG;CODEANALYSIS}]"); // Unexpected value after evaluation 412logger.AssertLogContains("[{a.cpp}{DEBUG;CODEANALYSIS}]"); // Unexpected value after evaluation 723logger.AssertLogContains("[a.cpp==DEBUG]", "[b.cpp==DEBUG]"); 748logger.AssertLogContains("[$(xyz)]"); 774logger.AssertLogContains("[]"); 806logger.AssertLogContains("[m2-n1-o1]"); 895logger.AssertLogContains("[m2]", "[n2]"); 925logger.AssertLogContains("[m2]"); 955logger.AssertLogContains("[m1]"); 986logger.AssertLogContains("[m2]"); 1017logger.AssertLogContains("[m1]"); 1047logger.AssertLogContains("[m2]"); 1117logger.AssertLogContains("[a.cpp==RETAIL]", "[b.cpp==DEBUG]"); 1145logger.AssertLogContains("[a.cpp==DEBUG]", "[a.cpp==4]"); 1175logger.AssertLogContains("[m2]"); 1205logger.AssertLogContains("[n2]"); 1240logger.AssertLogContains("[a.cpp==DEBUG]"); 1326logger.AssertLogContains("[m1][n2]"); 1355logger.AssertLogContains("[m1][n2]"); 1388logger.AssertLogContains("[m1]"); 1422logger.AssertLogContains("[m2]"); 1466logger.AssertLogContains("[m1]"); 1616logger.AssertLogContains("i:1 [im1][in1][io2][ip1][]"); 1617logger.AssertLogContains("j:2 [jm3][jn3][][][jq3]"); 1618logger.AssertLogContains("j:1 [jm6][in1][io2][ip1][jq3]"); 1619logger.AssertLogContains("k:3 [km5][][][][kq4]"); 1620logger.AssertLogContains("k:2 [jm3][jn3][][][jq3]"); 1621logger.AssertLogContains("k:1 [jm6][in1][io2][ip1][jq3]"); 1648logger.AssertLogContains("[m1][~m1~]"); 1675logger.AssertLogContains("[~~][n1]"); 1703logger.AssertLogContains("[m1][m1][]"); 1735logger.AssertLogContains("[a.cpp==CODEANALYSIS;RETAIL]"); 1794logger.AssertLogContains("[PARENT-before:m1]", "[CHILD:m2]", "[PARENT-after:m1]"); 1846logger.AssertLogContains("[CHILD:i1:m=m1,n=n1]", "[PARENT:i1:m=m1,n=n1]");
Definition\ToolsVersion_Tests.cs (24)
93mockLogger.AssertLogContains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OverrideTasksFileFailure", rootedPathMessage)); 111mockLogger.AssertLogContains("MSB4194"); 131mockLogger.AssertLogContains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OverrideTasksFileFailure", rootedPathMessage)); 151mockLogger.AssertLogContains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OverrideTasksFileFailure", rootedPathMessage)); 319mockLogger.AssertLogContains("ToolsVersion=\"98.6\""); 320mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 356mockLogger.AssertLogContains("ToolsVersion=\"0.1\""); 357mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 391mockLogger.AssertLogContains("ToolsVersion=\"invalidToolsVersion\""); 392mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 453mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 454mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 560mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 561mockLogger.AssertLogContains("ToolsVersion=\"foo\""); 598mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 600mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 641mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 642mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 712mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 713mockLogger.AssertLogContains("ToolsVersion=\"foo\""); 797mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 798mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 907mockLogger.AssertLogContains("ToolsVersion=\"4.0\""); 909mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\""));
EndToEndCondition_Tests.cs (2)
43logger.AssertLogContains("Condition evaluated true"); 66logger.AssertLogContains("Condition evaluated false");
EscapingInProjects_Tests.cs (9)
102logger.AssertLogContains("Property value is 'abc ; def ; ghi'"); 124logger.AssertLogContains("Property value is 'abc ; def ; ghi'"); 561logger.AssertLogContains("Resources = aaa%3bbbb.resx;ccc%3bddd.resx"); 599logger.AssertLogContains("Transformed item list: 'X;X%3bX.txt Y;Y%3bY.txt Z;Z%3bZ.txt'"); 626logger.AssertLogContains("Transformed item list: 'X;X%3bX.txt Y;Y%3bY.txt Z;Z%3bZ.txt'"); 692logger.AssertLogContains("MyGlobalProperty = 'foo%3bbar'"); 721logger.AssertLogContains("[*]"); 756logger.AssertLogContains("[*]"); 814logger.AssertLogContains("[OVERRIDE]");
Evaluation\Evaluator_Tests.cs (136)
325logger.AssertLogContains("PropertyOutsideTarget: ..\\test.txt"); 326logger.AssertLogContains("PropertyGroupOutsideTarget: test.txt"); 327logger.AssertLogContains("PropertyInsideTarget: ..\\test.txt"); 328logger.AssertLogContains("PropertyGroupInsideTarget: ..\\test.txt"); 329logger.AssertLogContains("[TargetDirectoryTargetsImport]"); 331logger.AssertLogContains("[TargetDirectoryTargetsImportGroup]"); 454logger.AssertLogContains("PropertyOutsideTarget: " + Path.Combine("..", "test.txt")); 455logger.AssertLogContains("PropertyGroupOutsideTarget: test.txt"); 456logger.AssertLogContains("PropertyInsideTarget: " + Path.Combine("..", "test.txt")); 457logger.AssertLogContains("PropertyGroupInsideTarget: " + Path.Combine("..", "test.txt")); 458logger.AssertLogContains("[TargetDirectoryTargetsImport]"); 460logger.AssertLogContains("[TargetDirectoryTargetsImportGroup]"); 520logger.AssertLogContains("MSB4211"); 741logger.AssertLogContains("MSB4211"); 787logger.AssertLogContains("MSB4211"); 851logger.AssertLogContains("foo"); 1160logger.AssertLogContains("[imported1]"); 1161logger.AssertLogContains("[imported2]"); 1215logger.AssertLogContains("15F11509E2E047EF9B337807ACEE4448;1C5C388AD1AB46F8A95BDF5894E95B8B"); 1216logger.AssertLogContains("5D64384AAB7A45FEA105EDA9959F5A41"); 1279logger.AssertLogContains("43FEAE1F861742549766443A31C581F9;14F2D19468E24EEE86F7DD6D6E81BB20;DCBE5C70A6EC41288AEA2259F0BFEEB4;74960FBBB84C46F5B7CAAF9113F955FC;67EFAD6EF5584EC2BD651119E6489424"); 1382logger.AssertLogContains(aProjName + @": MSBuildThisFileDirectory=" + aDirName); 1383logger.AssertLogContains(aProjName + @": MSBuildThisFileDirectoryNoRoot=a" + Path.DirectorySeparatorChar); 1384logger.AssertLogContains(aProjName + @": MSBuildThisFile=p.proj"); 1385logger.AssertLogContains(aProjName + @": MSBuildThisFileExtension=.proj"); 1386logger.AssertLogContains(aProjName + @": MSBuildThisFileFullPath=" + aProjName); 1387logger.AssertLogContains(aProjName + @": MSBuildThisFileName=p"); 1389logger.AssertLogContains(targets1FileName + @": MSBuildThisFileDirectory=" + aDirName); 1390logger.AssertLogContains(targets1FileName + @": MSBuildThisFileDirectoryNoRoot=a" + Path.DirectorySeparatorChar); 1391logger.AssertLogContains(targets1FileName + @": MSBuildThisFile=t1.targets"); 1392logger.AssertLogContains(targets1FileName + @": MSBuildThisFileExtension=.targets"); 1393logger.AssertLogContains(targets1FileName + @": MSBuildThisFileFullPath=" + targets1FileName); 1394logger.AssertLogContains(targets1FileName + @": MSBuildThisFileName=t1"); 1396logger.AssertLogContains(targets2FileName + @": MSBuildThisFileDirectory=" + bDirName); 1397logger.AssertLogContains(targets2FileName + @": MSBuildThisFileDirectoryNoRoot=a" + Path.DirectorySeparatorChar + "b" + Path.DirectorySeparatorChar); 1398logger.AssertLogContains(targets2FileName + @": MSBuildThisFile=t2.targets"); 1399logger.AssertLogContains(targets2FileName + @": MSBuildThisFileExtension=.targets"); 1400logger.AssertLogContains(targets2FileName + @": MSBuildThisFileFullPath=" + targets2FileName); 1401logger.AssertLogContains(targets2FileName + @": MSBuildThisFileName=t2"); 1403logger.AssertLogContains(targets3FileName + @": MSBuildThisFileDirectory=" + rootDirName); 1404logger.AssertLogContains(targets3FileName + @": MSBuildThisFileDirectoryNoRoot="); 1405logger.AssertLogContains(targets3FileName + @": MSBuildThisFile=t3.targets"); 1406logger.AssertLogContains(targets3FileName + @": MSBuildThisFileExtension=.targets"); 1407logger.AssertLogContains(targets3FileName + @": MSBuildThisFileFullPath=" + targets3FileName); 1408logger.AssertLogContains(targets3FileName + @": MSBuildThisFileName=t3"); 2319mockLogger.AssertLogContains("MSB4092"); 2893logger.AssertLogContains(String.Format("[{0}]", 1)); 2918logger.AssertLogContains(String.Format("[{0}]", FrameworkLocationHelper.programFiles32)); 2943logger.AssertLogContains("[Bar]"); 2973logger.AssertLogContains("[Baz]"); 3003logger.AssertLogContains("[Bar]"); 3033logger.AssertLogContains("[Baz]"); 3063logger.AssertLogContains("[BazBar]"); 3107logger.AssertLogContains(".[Foo1Foo2]."); 3108logger.AssertLogContains(".[[Bar1Bar2]]."); 3109logger.AssertLogContains(".[[[Baz1Baz2]]]."); 3179logger.AssertLogContains(".[BazFoo]."); 3180logger.AssertLogContains(".[[FooGoo]]."); 3213logger.AssertLogContains(".[BazGoo]."); 3214logger.AssertLogContains(".[[FooGoo]]."); 3358logger.AssertLogContains(".[Foo2]."); 3359logger.AssertLogContains(".[[Bar2]]."); 3360logger.AssertLogContains(".[[[Baz1]]]."); 3412logger.AssertLogContains("[BazBar]"); 3473logger.AssertLogContains("[Baz]"); 3533logger.AssertLogContains("[Bar]"); 3607logger.AssertLogContains(".[Foo3Foo1Foo2]."); 3608logger.AssertLogContains(".[[Bar3Bar2]]."); 3609logger.AssertLogContains(".[[[Baz3Baz2]]]."); 3680logger.AssertLogContains(".[Foo3Foo1Foo2]."); 3681logger.AssertLogContains(".[[Bar3Bar2]]."); 3682logger.AssertLogContains(".[[[Baz3Baz2]]]."); 3743logger.AssertLogContains(".[Foo1]."); 3805logger.AssertLogContains(".[Foo1Foo2]."); 3862logger.AssertLogContains(".[a1]."); 3863logger.AssertLogContains(".[[b1]]."); 3864logger.AssertLogContains(".[[[]]]."); 3865logger.AssertLogContains(".[[[[10.0]]]]."); 3871logger.AssertLogContains(".[a1]."); 3872logger.AssertLogContains(".[[b2]]."); 3873logger.AssertLogContains(".[[[c2]]]."); 3874logger.AssertLogContains(".[[[[11.0]]]]."); 3879logger.AssertLogContains("|changed|"); 3880logger.AssertLogContains("||a1||"); 3925logger.AssertLogContains(".[a1]."); 3926logger.AssertLogContains(".[[b1]]."); 3927logger.AssertLogContains(".[[[]]]."); 3928logger.AssertLogContains(".[[[[ABCDE]]]]."); 3932logger.AssertLogContains("|changed|"); 3933logger.AssertLogContains("||a1||"); 3977logger.AssertLogContains(".[a3]."); 3978logger.AssertLogContains(".[[b1]]."); 3979logger.AssertLogContains(".[[[c3]]]."); 3980logger.AssertLogContains(".[[[[FakeSubToolset]]]]."); 3984logger.AssertLogContains("|changed|"); 3985logger.AssertLogContains("||a3||"); 4029logger.AssertLogContains(".[a1]."); 4030logger.AssertLogContains(".[[b1]]."); 4031logger.AssertLogContains(".[[[]]]."); 4032logger.AssertLogContains(".[[[[abcdef]]]]."); 4036logger.AssertLogContains("|changed|"); 4037logger.AssertLogContains("||a1||"); 4088logger.AssertLogContains(".[a3]."); 4089logger.AssertLogContains(".[[b1]]."); 4090logger.AssertLogContains(".[[[c3]]]."); 4091logger.AssertLogContains(".[[[[d4]]]]."); 4092logger.AssertLogContains(".[[[[[FakeSubToolset]]]]]"); 4096logger.AssertLogContains("|changed|"); 4097logger.AssertLogContains("||a3||"); 4151logger.AssertLogContains(".[a3]."); 4152logger.AssertLogContains(".[[b1]]."); 4153logger.AssertLogContains(".[[[c5]]]."); 4154logger.AssertLogContains(".[[[[d5]]]]."); 4155logger.AssertLogContains(".[[[[[FakeSubToolset]]]]]."); 4159logger.AssertLogContains("|changed|"); 4160logger.AssertLogContains("||a3||"); 4210logger.AssertLogContains(".[a1]."); 4211logger.AssertLogContains(".[[b2]]."); 4212logger.AssertLogContains(".[[[c2]]]."); 4213logger.AssertLogContains(".[[[[11.0]]]]."); 4217logger.AssertLogContains("|changed|"); 4218logger.AssertLogContains("||a1||"); 4262logger.AssertLogContains(".[a3]."); 4263logger.AssertLogContains(".[[b1]]."); 4264logger.AssertLogContains(".[[[c3]]]."); 4265logger.AssertLogContains(".[[[[FakeSubToolset]]]]."); 4269logger.AssertLogContains("|changed|"); 4270logger.AssertLogContains("||a3||"); 4306logger.AssertLogContains(".[a3]."); 4307logger.AssertLogContains(".[[b1]]."); 4308logger.AssertLogContains(".[[[c3]]]."); 4309logger.AssertLogContains(".[[[[FakeSubToolset]]]]."); 4313logger.AssertLogContains("|changed|"); 4314logger.AssertLogContains("||a3||"); 4701logger.AssertLogContains( 5223logger.AssertLogContains(new string[] { "[2.targets]", "[3.cpp.targets]", "[1.targets]" });
Evaluation\Expander_Tests.cs (42)
418logger.AssertLogContains(@"DirChain0: Value1\;Value2\"); 419logger.AssertLogContains(@"DirChain1: Value1\||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Value2\"); 420logger.AssertLogContains(@"DirChain2: Value1\||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||##Value2\"); 421logger.AssertLogContains(@"DirChain3: Value1\||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||$##Value2\"); 422logger.AssertLogContains(@"DirChain4: Value1\$||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||$##Value2\"); 423logger.AssertLogContains(@"DirChain5: Value1\$||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||$##$Value2\"); 445log.AssertLogContains("[2][0]"); 468log.AssertLogContains("2;0"); 490log.AssertLogContains("[0][0]"); 513log.AssertLogContains("0;0"); 535log.AssertLogContains(String.Format(@"[{0}foo;{0}bar]", current + Path.DirectorySeparatorChar)); 557log.AssertLogContains(String.Format(@"[{0}foo;{0}bar]", current + Path.DirectorySeparatorChar)); 579log.AssertLogContains(String.Format(@"[{0}foo;{0}bar]", current + Path.DirectorySeparatorChar)); 600log.AssertLogContains("[foo;bar]"); 620log.AssertLogContains("MSB4198"); 640log.AssertLogContains("MSB4198"); 850logger.AssertLogContains("Item list foo contains abc"); 875logger.AssertLogContains("Property OutputType=Library"); 876logger.AssertLogContains("Item ObjFiles=foo.obj;bar.obj"); 877logger.AssertLogContains("Item CleanFiles=foo.obj;bar.obj"); 917logger.AssertLogContains("MSB4023"); 936logger.AssertLogContains("MSB4023"); 976logger.AssertLogContains("MSB4023"); 995logger.AssertLogContains("MSB4023"); 1035logger.AssertLogContains("MSB4023"); 1051logger.AssertLogContains("MSB4248"); 1067logger.AssertLogContains("MSB4248"); 1086logger.AssertLogContains("MSB4023"); 1129logger.AssertLogContains("[One|Three|Four]"); 1161logger.AssertLogContains("[Two|Three|Four]"); 1183logger.AssertLogContains("QualifiedNotMatchCase Foo=X"); 1184logger.AssertLogContains("QualifiedMatchCase Foo=X"); 1185logger.AssertLogContains("UnqualifiedNotMatchCase Foo=X"); 1186logger.AssertLogContains("UnqualifiedMatchCase Foo=X"); 1212logger.AssertLogContains("QualifiedNotMatchCase Foo=X"); 1213logger.AssertLogContains("QualifiedMatchCase Foo=X"); 1214logger.AssertLogContains("UnqualifiedNotMatchCase Foo=X"); 1215logger.AssertLogContains("UnqualifiedMatchCase Foo=X"); 1236logger.AssertLogContains("QualifiedNotMatchCase Foo=Foo"); 1237logger.AssertLogContains("QualifiedMatchCase Foo=Foo"); 1238logger.AssertLogContains("UnqualifiedNotMatchCase Foo=Foo"); 1239logger.AssertLogContains("UnqualifiedMatchCase Foo=Foo");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (19)
62logger.AssertLogContains("MSB4226"); 102l.AssertLogContains("Running FromExtn"); 103l.AssertLogContains("PropertyFromExtn1: FooBar"); 136(p, l) => l.AssertLogContains("MSB4210")); 268logger.AssertLogContains("MSB4210"); 311logger.AssertLogContains("MSB4024"); 366l.AssertLogContains("Running FromExtn"); 367l.AssertLogContains("PropertyFromExtn1: FromSecondFile"); 417logger.AssertLogContains("Running FromExtn"); 418logger.AssertLogContains("PropertyFromExtn1: FromSecondFile"); 507logger.AssertLogContains("Running FromExtn3"); 508logger.AssertLogContains("Running FromExtn2"); 509logger.AssertLogContains("Running FromExtn"); 584logger.AssertLogContains("Running FromExtn"); 646logger.AssertLogContains("\"" + extnDir1 + "\""); 715logger.AssertLogContains("Running FromExtn"); 780logger.AssertLogContains("Running FromExtn"); 838logger.AssertLogContains(@"MSB4226: The imported project """ + Path.Combine("$(UndefinedProperty)", "filenotfound.props") 875logger.AssertLogContains("MSB4102");
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
375logger.AssertLogContains($"ProjectFilePath = {p1Path}");
FixPathOnUnix_Tests.cs (1)
53logger.AssertLogContains($"ItemMetadata: Md0 = {Path.Combine("lib", "foo.dll")}");
Instance\ProjectInstance_Internal_Tests.cs (1)
588mockLogger.AssertLogContains(new string[] { "Building...", "Completed!" });
Instance\TaskItem_Tests.cs (9)
284logger.AssertLogContains("[i1m1]"); 285logger.AssertLogContains("[i1m2]"); 286logger.AssertLogContains("[j1m1]"); 287logger.AssertLogContains("[j1m2]"); 338logger.AssertLogContains("[i1m1]"); 339logger.AssertLogContains("[i1m2]"); 340logger.AssertLogContains("[j1m1]"); 341logger.AssertLogContains("[j1m2]"); 373logger.AssertLogContains("i1%2ai2");
InvalidProjectFileException_Tests.cs (3)
47ml.AssertLogContains("MSB4006"); 48ml.AssertLogContains("(4,29)"); 49ml.AssertLogContains(file);
WarningsAsMessagesAndErrors_Tests.cs (8)
309logger.AssertLogContains(LogShouldContain); 398logger.AssertLogContains("MSB1235"); 417logger.AssertLogContains("MSB4181"); 442logger.AssertLogContains("MSB4181"); 467logger.AssertLogContains("MSB1234"); 487logger.AssertLogContains("MSB4181"); 507logger.AssertLogContains("MSB4181"); 527logger.AssertLogContains("MSB4181");
Microsoft.Build.Tasks.UnitTests (28)
CallTarget_Tests.cs (7)
47logger.AssertLogContains("Inside B"); 74logger.AssertLogContains("Inside A"); 75logger.AssertLogContains("Inside B"); 107logger.AssertLogContains("Inside A"); 108logger.AssertLogContains("Inside B"); 109logger.AssertLogContains("Inside C"); 219logger.AssertLogContains("CallTarget Outputs: a.txt;b.txt;c.txt");
CreateProperty_Tests.cs (5)
47logger.AssertLogContains("NumberOfProcessors=''"); 74logger.AssertLogContains("TargetsToRunLaterProperty = Clean;Build"); 75logger.AssertLogContains("TargetsToRunLaterItem = Clean----Build"); 102logger.AssertLogContains("TargetsToRunLaterProperty = Clean;Build"); 103logger.AssertLogContains("TargetsToRunLaterItem = Clean;Build");
Exec_Tests.cs (3)
969logger.AssertLogContains("line 2"); 970logger.AssertLogContains("line 3"); 1026logger.AssertLogContains("Hello, World!");
MSBuild_Tests.cs (5)
247logger.AssertLogContains("Hello from foo.csproj"); 283logger.AssertLogContains("Hello from foo.csproj"); 328logger.AssertLogContains("Hello from foo.csproj"); 374logger.AssertLogContains("Hello from foo.csproj"); 1392logger.AssertLogContains("[foo.out]");
RoslynCodeTaskFactory_Tests.cs (1)
643logger.AssertLogContains(errorMessage);
XmlPeek_Tests.cs (2)
340log.AssertLogContains("MSB4044"); 341log.AssertLogContains("\"Query\"");
XmlPoke_Tests.cs (5)
148log.AssertLogContains("MSB4044"); 160log.AssertLogContains("MSB4044"); 161log.AssertLogContains("\"Query\""); 173log.AssertLogContains("MSB4044"); 174log.AssertLogContains("\"XmlInputPath\"");
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
420MockLogger.AssertLogContains(contains);
Microsoft.Build.Utilities.UnitTests (10)
MuxLogger_Tests.cs (10)
170mockLogger.AssertLogContains("Foo"); 171mockLogger.AssertLogContains("Error"); 228mockLogger1.AssertLogContains("Foo"); 229mockLogger1.AssertLogContains("Error"); 237mockLogger2.AssertLogContains("Bar"); 238mockLogger2.AssertLogContains("Warning"); 280mockLogger1.AssertLogContains("Foo"); 281mockLogger1.AssertLogContains("Error"); 285mockLogger2.AssertLogContains("Foo"); 286mockLogger2.AssertLogContains("Error");