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