1 write to _customLogger
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskHost_Tests.cs (1)
68
_customLogger
= new MyCustomLogger();
53 references to _customLogger
Microsoft.Build.Engine.UnitTests (53)
BackEnd\TaskHost_Tests.cs (53)
72
_loggingService.RegisterLogger(
_customLogger
);
133
Assert.True(
_customLogger
.LastError is MyCustomBuildErrorEventArgs); // "Expected Custom Error Event"
136
customBuildError =
_customLogger
.LastError as MyCustomBuildErrorEventArgs;
158
Assert.True(
_customLogger
.LastWarning is MyCustomBuildWarningEventArgs); // "Expected Custom Warning Event"
161
customBuildWarning =
_customLogger
.LastWarning as MyCustomBuildWarningEventArgs;
183
Assert.True(
_customLogger
.LastMessage is MyCustomMessageEvent); // "Expected Custom message Event"
185
customMessage =
_customLogger
.LastMessage as MyCustomMessageEvent;
201
Assert.True(
_customLogger
.LastError is BuildErrorEventArgs); // "Expected Error Event"
202
Assert.Equal(0,
_customLogger
.LastError.LineNumber); // "Expected line number to be 0"
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"
219
Assert.Equal(1,
_customLogger
.NumberOfWarning); // "Expected one Warning Event at this point"
220
Assert.Equal(1,
_customLogger
.NumberOfError); // "Expected one Warning Event at this point"
226
Assert.True(
_customLogger
.LastError is BuildErrorEventArgs); // "Expected Error Event"
227
Assert.Equal(0,
_customLogger
.LastWarning.LineNumber); // "Expected line number to be 0"
284
Assert.True(
_customLogger
.LastError is BuildErrorEventArgs); // "Expected Error Event"
285
Assert.Equal(0,
_customLogger
.LastError.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"
312
Assert.True(
_customLogger
.LastMessage is BuildMessageEventArgs); // "Expected Message Event"
313
Assert.Equal(MessageImportance.High,
_customLogger
.LastMessage.Importance); // "Expected Message importance to be high"
326
Assert.True(
_customLogger
.LastCustom is CustomBuildEventArgs); // "Expected custom build Event"
327
Assert.Equal("testCustomBuildEvent",
_customLogger
.LastCustom.Message);
342
Assert.True(
_customLogger
.LastError is BuildErrorEventArgs); // "Expected Error Event"
343
Assert.Contains("SubCategory",
_customLogger
.LastError.Message); // "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"
370
Assert.True(
_customLogger
.LastMessage is MyCustomMessageEventNotSerializable); // "Expected Message Event"
371
Assert.Contains("message",
_customLogger
.LastMessage.Message); // "Expected Message importance to be high"
384
Assert.True(
_customLogger
.LastCustom is MyCustomBuildEventArgsNotSerializable); // "Expected custom build Event"
385
Assert.Equal("testCustomBuildEvent",
_customLogger
.LastCustom.Message);
400
Assert.True(
_customLogger
.LastCustom is ExtendedCustomBuildEventArgs); // "Expected custom build Event"
401
Assert.Equal("ext message",
_customLogger
.LastCustom.Message);
413
Assert.True(
_customLogger
.LastError is ExtendedBuildErrorEventArgs); // "Expected custom build Event"
414
Assert.Equal("ext err message",
_customLogger
.LastError.Message);
426
Assert.True(
_customLogger
.LastWarning is ExtendedBuildWarningEventArgs); // "Expected custom build Event"
427
Assert.Equal("ext warn message",
_customLogger
.LastWarning.Message);
439
Assert.True(
_customLogger
.LastMessage is ExtendedBuildMessageEventArgs); // "Expected custom build Event"
440
Assert.Equal("ext message",
_customLogger
.LastMessage.Message);
457
Assert.Null(
_customLogger
.LastError); // "Expected no error Event"
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"
477
Assert.Equal(1,
_customLogger
.NumberOfWarning); // "Expected there to be only one warning"
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"
497
Assert.Equal(1,
_customLogger
.NumberOfWarning); // "Expected there to be only one warning"
500
Assert.Contains(message,
_customLogger
.LastWarning.Message); // "Expected line to contain NotSerializable message but it did not"
514
Assert.Null(
_customLogger
.LastCustom as MyCustomBuildEventArgsNotSerializable); // "Expected no custom Event"
517
Assert.True(
_customLogger
.LastWarning is BuildWarningEventArgs); // "Expected Warning Event"
518
Assert.Equal(1,
_customLogger
.NumberOfWarning); // "Expected there to be only one warning"
520
Assert.Contains(message,
_customLogger
.LastWarning.Message); // "Expected line to contain NotSerializable message but it did not"