1 write to Exception
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
35
Exception
= exception;
155 references to Exception
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (18)
Logging\AcceptanceTests.cs (12)
179
Assert.Null(logCollector.LatestRecord.
Exception
);
239
Assert.Null(logCollector.LatestRecord.
Exception
);
305
Assert.All(logRecords, x => Assert.Null(x.
Exception
));
367
Assert.Null(lastRecord.
Exception
);
413
Assert.Null(logCollector.LatestRecord.
Exception
);
455
Assert.Null(logCollector.LatestRecord.
Exception
);
486
Assert.All(logRecords, x => Assert.Null(x.
Exception
));
524
Assert.All(logRecords, x => Assert.Null(x.
Exception
));
575
Assert.Null(logCollector.LatestRecord.
Exception
);
616
Assert.Null(logCollector.LatestRecord.
Exception
);
650
Assert.Null(logCollector.LatestRecord.
Exception
);
751
Assert.IsType<InvalidOperationException>(logCollector.GetSnapshot()[0].
Exception
);
Logging\AcceptanceTests.Mvc.cs (5)
73
Assert.Null(logRecord.
Exception
);
108
Assert.Null(logRecord.
Exception
);
154
Assert.Null(logRecord.
Exception
);
198
Assert.Null(logRecord.
Exception
);
239
Assert.Null(logRecord.
Exception
);
Logging\AcceptanceTests.Routing.cs (1)
73
Assert.Null(logRecord.
Exception
);
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Logging\FakeLoggerTests.cs (3)
38
Assert.Null(records[0].
Exception
);
47
Assert.Null(records[0].
Exception
);
55
Assert.Null(logger.LatestRecord.
Exception
);
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Logging\AcceptanceTests.cs (3)
48
Assert.Null(logRecord.
Exception
);
81
Assert.IsType<NotSupportedException>(firstLogRecord.
Exception
);
89
Assert.Null(secondLogRecord.
Exception
);
Logging\HttpClientLoggerTest.cs (5)
442
Assert.Same(exception, logRecord.
Exception
);
781
Assert.Equal(exception, logRecords[0].
Exception
);
826
Assert.Equal(enrichmentException, logRecords[0].
Exception
);
829
Assert.Equal(sendAsyncException, logRecords[1].
Exception
);
989
Assert.Same(exception, logRecord.
Exception
);
Microsoft.Extensions.Telemetry.Tests (14)
Logging\ExtendedLoggerTests.cs (14)
78
Assert.Null(snap[0].
Exception
);
94
Assert.Null(snap[1].
Exception
);
163
Assert.Null(snap[0].
Exception
);
170
Assert.Null(snap[1].
Exception
);
228
Assert.Null(snap[0].
Exception
);
235
Assert.Null(snap[1].
Exception
);
242
Assert.Null(snap[2].
Exception
);
249
Assert.Null(snap[3].
Exception
);
288
Assert.Null(snap[0].
Exception
);
357
Assert.Null(snap[0].
Exception
);
466
Assert.Null(snap[0].
Exception
);
471
Assert.NotNull(snap[1].
Exception
);
476
Assert.Null(snap[2].
Exception
);
481
Assert.NotNull(snap[3].
Exception
);
Microsoft.Gen.Logging.Generated.Tests (112)
DataClassificationTests.cs (1)
22
Assert.Null(collector.LatestRecord.
Exception
);
LoggerFromMemberTests.cs (12)
24
Assert.Null(collector.LatestRecord.
Exception
);
41
Assert.Null(collector.LatestRecord.
Exception
);
62
Assert.Null(collector.LatestRecord.
Exception
);
79
Assert.Null(collector.LatestRecord.
Exception
);
100
Assert.Null(collector.LatestRecord.
Exception
);
114
Assert.Null(collector.LatestRecord.
Exception
);
130
Assert.Null(logger.Collector.LatestRecord.
Exception
);
140
Assert.Null(logger.Collector.LatestRecord.
Exception
);
143
Assert.Null(logger2.Collector.LatestRecord.
Exception
);
157
Assert.Null(collector.LatestRecord.
Exception
);
174
Assert.Null(collector.LatestRecord.
Exception
);
179
Assert.Null(collector.LatestRecord.
Exception
);
LoggerMessageAttributeTests.cs (13)
21
Assert.Null(collector.LatestRecord.
Exception
);
34
Assert.Null(collector.LatestRecord.
Exception
);
47
Assert.Null(collector.LatestRecord.
Exception
);
53
Assert.Null(collector.LatestRecord.
Exception
);
66
Assert.Null(collector.LatestRecord.
Exception
);
72
Assert.Null(collector.LatestRecord.
Exception
);
78
Assert.Null(collector.LatestRecord.
Exception
);
91
Assert.Null(collector.LatestRecord.
Exception
);
97
Assert.Null(collector.LatestRecord.
Exception
);
110
Assert.Null(collector.LatestRecord.
Exception
);
138
Assert.Null(collector.LatestRecord.
Exception
);
144
Assert.Null(collector.LatestRecord.
Exception
);
156
Assert.Null(collector.LatestRecord.
Exception
);
LogMethodTests.cs (63)
26
Assert.Null(collector.LatestRecord.
Exception
);
33
Assert.Null(collector.LatestRecord.
Exception
);
40
Assert.Null(collector.LatestRecord.
Exception
);
53
Assert.Null(collector.LatestRecord.
Exception
);
112
Assert.Null(collector.LatestRecord.
Exception
);
118
Assert.Null(collector.LatestRecord.
Exception
);
124
Assert.Null(collector.LatestRecord.
Exception
);
130
Assert.Equal("A", collector.LatestRecord.
Exception
!.Message);
136
Assert.Equal("A", collector.LatestRecord.
Exception
!.Message);
142
Assert.Equal("A", collector.LatestRecord.
Exception
!.Message);
148
Assert.Equal("B", collector.LatestRecord.
Exception
!.Message);
223
Assert.Null(collector.LatestRecord.
Exception
);
231
Assert.Null(collector.LatestRecord.
Exception
);
239
Assert.Null(collector.LatestRecord.
Exception
);
247
Assert.Null(collector.LatestRecord.
Exception
);
255
Assert.Null(collector.LatestRecord.
Exception
);
263
Assert.Null(collector.LatestRecord.
Exception
);
271
Assert.Null(collector.LatestRecord.
Exception
);
282
Assert.Null(logRecord.
Exception
);
293
Assert.Null(logRecord.
Exception
);
308
Assert.Null(collector.LatestRecord.
Exception
);
315
Assert.Null(collector.LatestRecord.
Exception
);
322
Assert.Null(collector.LatestRecord.
Exception
);
329
Assert.Null(collector.LatestRecord.
Exception
);
336
Assert.Null(collector.LatestRecord.
Exception
);
344
Assert.Null(collector.LatestRecord.
Exception
);
361
Assert.Null(collector.LatestRecord.
Exception
);
368
Assert.Null(collector.LatestRecord.
Exception
);
378
Assert.Null(logRecord.
Exception
);
403
Assert.Null(collector.LatestRecord.
Exception
);
410
Assert.Null(collector.LatestRecord.
Exception
);
417
Assert.Null(collector.LatestRecord.
Exception
);
424
Assert.Null(collector.LatestRecord.
Exception
);
431
Assert.Null(collector.LatestRecord.
Exception
);
438
Assert.Null(collector.LatestRecord.
Exception
);
445
Assert.Null(collector.LatestRecord.
Exception
);
452
Assert.Null(collector.LatestRecord.
Exception
);
459
Assert.Null(collector.LatestRecord.
Exception
);
466
Assert.Null(collector.LatestRecord.
Exception
);
481
Assert.Null(collector.LatestRecord.
Exception
);
488
Assert.Null(collector.LatestRecord.
Exception
);
495
Assert.Null(collector.LatestRecord.
Exception
);
509
Assert.Null(collector.LatestRecord.
Exception
);
526
Assert.Equal("Foo", collector.LatestRecord.
Exception
!.Message);
533
Assert.Equal("Foo", collector.LatestRecord.
Exception
!.Message);
540
Assert.Equal("Foo", collector.LatestRecord.
Exception
!.Message);
549
Assert.NotNull(collector.LatestRecord.
Exception
);
550
Assert.Equal(exception.Message, collector.LatestRecord.
Exception
!.Message);
551
Assert.Equal(exception.GetType(), collector.LatestRecord.
Exception
!.GetType());
564
Assert.Null(collector.LatestRecord.
Exception
);
575
Assert.Null(logRecord.
Exception
);
590
Assert.Null(collector.LatestRecord.
Exception
);
597
Assert.Null(collector.LatestRecord.
Exception
);
604
Assert.Null(collector.LatestRecord.
Exception
);
611
Assert.Null(collector.LatestRecord.
Exception
);
618
Assert.Null(collector.LatestRecord.
Exception
);
632
Assert.Null(collector.LatestRecord.
Exception
);
640
Assert.Null(collector.LatestRecord.
Exception
);
648
Assert.Null(collector.LatestRecord.
Exception
);
662
Assert.Null(collector.LatestRecord.
Exception
);
678
Assert.Null(collector.LatestRecord.
Exception
);
692
Assert.Null(collector.LatestRecord.
Exception
);
763
Assert.NotNull(collector.LatestRecord.
Exception
);
LogPropertiesRedactionTests.cs (6)
30
Assert.Null(collector.LatestRecord.
Exception
);
55
Assert.Null(collector.LatestRecord.
Exception
);
79
Assert.Null(collector.LatestRecord.
Exception
);
109
Assert.Null(collector.LatestRecord.
Exception
);
139
Assert.Null(collector.LatestRecord.
Exception
);
164
Assert.Null(collector.LatestRecord.
Exception
);
LogPropertiesTests.cs (8)
389
Assert.Null(latestRecord.
Exception
);
419
Assert.Null(latestRecord.
Exception
);
448
Assert.Null(latestRecord.
Exception
);
472
Assert.Null(latestRecord.
Exception
);
499
Assert.Null(latestRecord.
Exception
);
523
Assert.Null(latestRecord.
Exception
);
548
Assert.Null(latestRecord.
Exception
);
574
Assert.Null(latestRecord.
Exception
);
PrimaryConstructorTests.cs (4)
23
Assert.Null(collector.LatestRecord.
Exception
);
37
Assert.Null(collector.LatestRecord.
Exception
);
51
Assert.Null(collector.LatestRecord.
Exception
);
65
Assert.Null(collector.LatestRecord.
Exception
);
TagProviderTests.cs (5)
82
Assert.Null(latestRecord.
Exception
);
105
Assert.Null(latestRecord.
Exception
);
126
Assert.Null(latestRecord.
Exception
);
137
Assert.Null(latestRecord.
Exception
);
187
Assert.Null(latestRecord.
Exception
);