2 writes to Warnings
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
3062e.Warnings = 0;
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
119++Warnings;
61 references to Warnings
Microsoft.Build.Tasks.UnitTests (61)
AssemblyDependency\SuggestedRedirects.cs (10)
73Assert.Equal(1, e.Warnings); // "Should only be one warning for suggested redirects." 108Assert.Equal(1, engine.Warnings); // @"Expected a warning because this is an unresolvable conflict." 111Assert.Equal(1, engine.Warnings); // "Should only be one warning for suggested redirects." 160Assert.Equal(0, engine.Warnings); // "Should be no warning for suggested redirects." 201Assert.Equal(1, e.Warnings); // @"Expected one warning." 246Assert.Equal(1, e.Warnings); // @"Expected one warning." 335Assert.Equal(1, e.Warnings); 374Assert.Equal(0, e.Warnings); 418Assert.Equal(0, e.Warnings); // "Should only be no warning about suggested redirects." 461Assert.Equal(0, e.Warnings); // "Should only be no warning about suggested redirects."
Copy_Tests.cs (7)
869Assert.Equal(((t.Retries + 1) * 3) - 1, ((MockEngine)t.BuildEngine).Warnings); 1245Assert.Equal(0, engine.Warnings); 1292Assert.Equal(0, engine.Warnings); 1339Assert.Equal(0, engine.Warnings); 1390Assert.Equal(10, engine.Warnings); 1512Assert.Equal(0, engine.Warnings); 1555Assert.Equal(0, engine.Warnings);
CreateItem_Tests.cs (1)
362engine.Warnings.ShouldBe(1);
Exec_Tests.cs (11)
173int warningsCount = ((MockEngine)exec.BuildEngine).Warnings; 193mockEngine.Warnings.ShouldBe(1); 210Assert.Equal(0, ((MockEngine)exec.BuildEngine).Warnings); 709Assert.Equal(0, e.Warnings); 719Assert.Equal(1, e.Warnings); 736Assert.Equal(0, ((MockEngine)exec.BuildEngine).Warnings); 753Assert.Equal(2, ((MockEngine)exec.BuildEngine).Warnings); 769Assert.Equal(0, ((MockEngine)exec.BuildEngine).Warnings); 786Assert.Equal(0, ((MockEngine)exec.BuildEngine).Warnings); 803Assert.Equal(1, ((MockEngine)exec.BuildEngine).Warnings); 816Assert.Equal(0, ((MockEngine)exec.BuildEngine).Warnings);
GenerateBindingRedirects_Tests.cs (3)
177redirectResults.Engine.Warnings.ShouldBe(0); // "Unexpected errors. Engine log: " + redirectResults.Engine.Log 203redirectResults.Engine.Warnings.ShouldBe(0); 233redirectResults.Engine.Warnings.ShouldBe(0);
GetInstalledSDKLocations_Tests.cs (1)
262Assert.Equal(1, engine.Warnings);
GetSDKReference_Tests.cs (8)
1116Assert.Equal(0, engine.Warnings); 1145Assert.Equal(2, engine.Warnings); 1172Assert.Equal(0, engine.Warnings); 1200Assert.Equal(1, engine.Warnings); 1236Assert.Equal(2, engine.Warnings); 1282Assert.Equal(2, engine.Warnings); 1325Assert.Equal(0, engine.Warnings); 1369Assert.Equal(0, engine.Warnings);
RemoveDir_Tests.cs (1)
114((MockEngine)t.BuildEngine).Warnings.ShouldBe(20);
ResolveNonMSBuildProjectOutput_Tests.cs (2)
346Assert.Equal(1, engine.Warnings); 353Assert.Equal(0, engine.Warnings);
ResolveSDKReference_Tests.cs (16)
383Assert.Equal(0, engine.Warnings); 410Assert.Equal(4, engine.Warnings); 616Assert.Equal(0, engine.Warnings); // "Expected no warnings" 671Assert.Equal(0, engine.Warnings); // "Expected no warnings" 729Assert.Equal(0, engine.Warnings); // "Expected no warnings" 784Assert.Equal(0, engine.Warnings); // "Expected no warnings" 839Assert.Equal(0, engine.Warnings); // "Expected no warnings" 894Assert.Equal(0, engine.Warnings); // "Expected no warnings" ; 950Assert.Equal(0, engine.Warnings); // "Expected no warnings" 1004Assert.Equal(0, engine.Warnings); // "Expected no warnings" 1059Assert.Equal(0, engine.Warnings); // "Expected no warnings" 2704Assert.Equal(0, engine.Warnings); 2867Assert.Equal(1, engine.Warnings); 2965Assert.Equal(1, engine.Warnings); 3077Assert.Equal(2, engine.Warnings); 3176Assert.Equal(1, engine.Warnings);
RoslynCodeTaskFactory_Tests.cs (1)
813buildEngine.Warnings.ShouldBe(0);