115 references to AssertLogDoesntContain
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
171mockLogger2.AssertLogDoesntContain("IHaveBeenLogged");
Microsoft.Build.Engine.UnitTests (103)
BackEnd\BatchingEngine_Tests.cs (3)
312log.AssertLogDoesntContain("Item After:dev 1"); 313log.AssertLogDoesntContain("Item After:prod 1"); 344log.AssertLogDoesntContain("a.obj");
BackEnd\BuildManager_Tests.cs (22)
1048_logger.AssertLogDoesntContain("[message]"); 1565_logger.AssertLogDoesntContain("[errormessage]"); 1600_logger.AssertLogDoesntContain("[errormessage]"); 1640_logger.AssertLogDoesntContain("[errormessage]"); 1643_logger.AssertLogDoesntContain("MSB4217"); 1646_logger.AssertLogDoesntContain("MSB4216"); 1678_logger.AssertLogDoesntContain("[errormessage]"); 1719_logger.AssertLogDoesntContain("[errormessage]"); 1753_logger.AssertLogDoesntContain("[errormessage]"); 1756_logger.AssertLogDoesntContain("MSB4217"); 2231_logger.AssertLogDoesntContain("MSB4223"); 2286_logger.AssertLogDoesntContain("[deleteme]"); 2290_logger.AssertLogDoesntContain("[foo]"); 2328_logger.AssertLogDoesntContain("[changed]"); 2745_logger.AssertLogDoesntContain("Error 2"); 2842_logger.AssertLogDoesntContain("Error 2"); 2858_logger.AssertLogDoesntContain(skippedMessage2); 2862_logger.AssertLogDoesntContain(skippedMessage3); 2866_logger.AssertLogDoesntContain(skippedMessage4); 3029_logger.AssertLogDoesntContain("Error 2"); 3098_logger.AssertLogDoesntContain("[Error2]"); 3387_logger.AssertLogDoesntContain("[BaseValue]");
BackEnd\IntrinsicTask_Tests.cs (12)
193logger.AssertLogDoesntContain("[v1][v2]"); 917logger.AssertLogDoesntContain("[a1][b1]"); 3580logger.AssertLogDoesntContain("start:"); 3581logger.AssertLogDoesntContain("end:"); 3615logger.AssertLogDoesntContain("[1]"); 3646logger.AssertLogDoesntContain("[1]"); 3673logger.AssertLogDoesntContain("[1]"); 3674logger.AssertLogDoesntContain("[2]"); 3702logger.AssertLogDoesntContain("[1]"); 3703logger.AssertLogDoesntContain("[2]"); 3731logger.AssertLogDoesntContain("[1]"); 3760logger.AssertLogDoesntContain("[1]");
BackEnd\MSBuild_Tests.cs (24)
831logger.AssertLogDoesntContain("iin1=[a/b.foo;c/d.foo;g/h.foo]"); 832logger.AssertLogDoesntContain("iin1-target-paths=[b.foo;d.foo;h.foo]"); 881logger.AssertLogDoesntContain("MSB4120"); 1348logger.AssertLogDoesntContain("SecondProject"); 1351logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NoStopOnFirstFailure")); 1360logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingProjects")); 1361logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NoStopOnFirstFailure")); 1362logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NotBuildingInParallel")); 1366logger.AssertLogDoesntContain("SecondProject"); 1369logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NoStopOnFirstFailure")); 1370logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NotBuildingInParallel")); 1379logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingProjects")); 1380logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NoStopOnFirstFailure")); 1381logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.NotBuildingInParallel")); 1562logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingProjects")); 1582logger2.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingProjects")); 1698logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingTargets")); 1704logger.AssertLogDoesntContain("Proj2 T2 message"); 1711logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingTargets")); 1718logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingTargets")); 1724logger.AssertLogDoesntContain("Proj2 T2 message"); 1725logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingTargets")); 1731logger.AssertLogDoesntContain("Proj2 T2 message"); 1732logger.AssertLogDoesntContain(AssemblyResources.GetString("MSBuild.SkippingRemainingTargets"));
BackEnd\TargetBuilder_Tests.cs (4)
390log.AssertLogDoesntContain("MSB4057"); // missing target 422log.AssertLogDoesntContain("MSB4057"); // missing target 445log.AssertLogDoesntContain("MSB4057"); // missing target 481log.AssertLogDoesntContain("MSB4057"); // missing target
BackEnd\TargetEntry_Tests.cs (1)
655log.AssertLogDoesntContain("item1;item2");
BackEnd\TargetUpToDateChecker_Tests.cs (4)
67ml.AssertLogDoesntContain("Running Build target"); 94ml.AssertLogDoesntContain("This is an unhandled exception"); 153ml.AssertLogDoesntContain("Running Build target"); 526logger.AssertLogDoesntContain("B.out;B.out");
BackEnd\TaskBuilder_Tests.cs (8)
86logger.AssertLogDoesntContain("Made it"); 202logger.AssertLogDoesntContain("MSB4181"); 298logger.AssertLogDoesntContain("start:"); 299logger.AssertLogDoesntContain("end:"); 302logger.AssertLogDoesntContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TaskStarted", "CreateProperty")); 458logger.AssertLogDoesntContain("MSB4118"); 459logger.AssertLogDoesntContain("MSB3031"); 675logger.AssertLogDoesntContain("MSB4018");
BackEnd\TaskExecutionHost_Tests.cs (2)
1085ml.AssertLogDoesntContain("MSB1025"); 1087ml.AssertLogDoesntContain(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("UnhandledMSBuildError", string.Empty));
Construction\SolutionFilter_Tests.cs (1)
148logger.AssertLogDoesntContain("ClassLibraryBuilt");
Definition\ItemDefinitionGroup_Tests.cs (1)
1467logger.AssertLogDoesntContain("[m2]");
Evaluation\Evaluator_Tests.cs (12)
330logger.AssertLogDoesntContain("[ProjectDirectoryTargetsImport]"); 332logger.AssertLogDoesntContain("[ProjectDirectoryTargetsImportGroup]"); 459logger.AssertLogDoesntContain("[ProjectDirectoryTargetsImport]"); 461logger.AssertLogDoesntContain("[ProjectDirectoryTargetsImportGroup]"); 563logger.AssertLogDoesntContain("MSB4211"); 608logger.AssertLogDoesntContain("MSB4211"); 651logger.AssertLogDoesntContain("MSB4211"); 697logger.AssertLogDoesntContain("MSB4211"); 852logger.AssertLogDoesntContain("foo_bar"); 1217logger.AssertLogDoesntContain("01CB8D8A6E454918B17496468B3D74AA"); 1316logger.AssertLogDoesntContain("15F11509E2E047EF9B337807ACEE4448"); 5224logger.AssertLogDoesntContain("4.nottargets");
Evaluation\Expander_Tests.cs (4)
834logger.AssertLogDoesntContain("This target should NOT run."); 1943log.AssertLogDoesntContain("%28"); 1944log.AssertLogDoesntContain("%29"); 1991log.AssertLogDoesntContain("Reference assembly paths do not match");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (2)
172logger.AssertLogDoesntContain("MSB4057"); // Should not contain TargetDoesNotExist 215logger.AssertLogDoesntContain("MSB4057"); // Should not contain TargetDoesNotExist
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
376logger.AssertLogDoesntContain($"ProjectFilePath = {p2Path}");
Graph\IsolateProjects_Tests.cs (1)
240logger.AssertLogDoesntContain("MSB4260");
WarningsAsMessagesAndErrors_Tests.cs (1)
362logger.AssertLogDoesntContain("MSB1237");
Microsoft.Build.Tasks.UnitTests (4)
CallTarget_Tests.cs (1)
78logger.AssertLogDoesntContain("Inside C");
Exec_Tests.cs (1)
974logger.AssertLogDoesntContain("1 echo line");
XmlPeek_Tests.cs (1)
330logger.AssertLogDoesntContain("MSB4036");
XmlPoke_Tests.cs (1)
328logger.AssertLogDoesntContain("MSB4036");
Microsoft.Build.UnitTests.Shared (3)
MockEngine.cs (1)
451MockLogger.AssertLogDoesntContain(contains);
MockLogger.cs (2)
398AssertLogDoesntContain("MSB4018"); 402AssertLogDoesntContain("MSB0001");
Microsoft.Build.Utilities.UnitTests (4)
MuxLogger_Tests.cs (4)
230mockLogger1.AssertLogDoesntContain("Bar"); 231mockLogger1.AssertLogDoesntContain("Warning"); 235mockLogger2.AssertLogDoesntContain("Foo"); 236mockLogger2.AssertLogDoesntContain("Error");