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