20 references to LastWarning
Microsoft.Build.Engine.UnitTests (20)
BackEnd\TaskHost_Tests.cs (20)
163
Assert.True(_customLogger.
LastWarning
is MyCustomBuildWarningEventArgs); // "Expected Custom Warning Event"
166
customBuildWarning = _customLogger.
LastWarning
as MyCustomBuildWarningEventArgs;
212
Assert.Null(_customLogger.
LastWarning
); // "Expected no Warning Event at this point"
218
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
219
Assert.Equal(0, _customLogger.
LastWarning
.LineNumber); // "Expected line number to be 0"
232
Assert.Equal(0, _customLogger.
LastWarning
.LineNumber); // "Expected line number to be 0"
303
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
304
Assert.Equal(0, _customLogger.
LastWarning
.LineNumber); // "Expected line number to be 0"
361
Assert.True(_customLogger.
LastWarning
is MyCustomBuildWarningEventArgsNotSerializable); // "Expected Warning Event"
362
Assert.Contains("SubCategory", _customLogger.
LastWarning
.Message); // "Expected line number to be 0"
431
Assert.True(_customLogger.
LastWarning
is ExtendedBuildWarningEventArgs); // "Expected custom build Event"
432
Assert.Equal("ext warn message", _customLogger.
LastWarning
.Message);
463
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
466
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"
481
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
485
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"
501
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
505
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"
522
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
525
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"