20 references to LastWarning
Microsoft.Build.Engine.UnitTests (20)
BackEnd\TaskHost_Tests.cs (20)
158
Assert.True(_customLogger.
LastWarning
is MyCustomBuildWarningEventArgs); // "Expected Custom Warning Event"
161
customBuildWarning = _customLogger.
LastWarning
as MyCustomBuildWarningEventArgs;
207
Assert.Null(_customLogger.
LastWarning
); // "Expected no Warning Event at this point"
213
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
214
Assert.Equal(0, _customLogger.
LastWarning
.LineNumber); // "Expected line number to be 0"
227
Assert.Equal(0, _customLogger.
LastWarning
.LineNumber); // "Expected line number to be 0"
298
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
299
Assert.Equal(0, _customLogger.
LastWarning
.LineNumber); // "Expected line number to be 0"
356
Assert.True(_customLogger.
LastWarning
is MyCustomBuildWarningEventArgsNotSerializable); // "Expected Warning Event"
357
Assert.Contains("SubCategory", _customLogger.
LastWarning
.Message); // "Expected line number to be 0"
426
Assert.True(_customLogger.
LastWarning
is ExtendedBuildWarningEventArgs); // "Expected custom build Event"
427
Assert.Equal("ext warn message", _customLogger.
LastWarning
.Message);
458
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
461
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"
476
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
480
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"
496
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
500
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"
517
Assert.True(_customLogger.
LastWarning
is BuildWarningEventArgs); // "Expected Warning Event"
520
Assert.Contains(message, _customLogger.
LastWarning
.Message); // "Expected line to contain NotSerializable message but it did not"