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