202 references to Count
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (20)
Logging\AcceptanceTests.cs (14)
141
if (logCollector.
Count
>= expectedRecords)
178
Assert.Equal(1, logCollector.
Count
);
238
Assert.Equal(1, logCollector.
Count
);
364
Assert.Equal(1, logCollector.
Count
);
412
Assert.Equal(1, logCollector.
Count
);
454
Assert.Equal(1, logCollector.
Count
);
572
Assert.Equal(1, logCollector.
Count
);
613
Assert.Equal(1, logCollector.
Count
);
647
Assert.Equal(1, logCollector.
Count
);
674
Assert.Equal(0, logCollector.
Count
);
706
Assert.Equal(0, logCollector.
Count
);
711
Assert.Equal(1, logCollector.
Count
);
733
Assert.Equal(0, logCollector.
Count
);
750
Assert.Equal(2, logCollector.
Count
);
Logging\AcceptanceTests.Mvc.cs (5)
70
Assert.Equal(1, logCollector.
Count
);
105
Assert.Equal(1, logCollector.
Count
);
151
Assert.Equal(1, logCollector.
Count
);
195
Assert.Equal(1, logCollector.
Count
);
236
Assert.Equal(1, logCollector.
Count
);
Logging\AcceptanceTests.Routing.cs (1)
70
Assert.Equal(1, logCollector.
Count
);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
102
Assert.Equal(expectedLogCount, collector.
Count
);
Microsoft.Extensions.Diagnostics.Testing.Tests (20)
Logging\FakeLoggerExtensionsTests.cs (8)
26
Assert.Equal(0, collector.
Count
);
28
Assert.Equal(1, collector.
Count
);
42
Assert.Equal(0, collector.
Count
);
44
Assert.Equal(1, collector.
Count
);
48
Assert.Equal(1, collector.
Count
);
70
Assert.Equal(0, collector.
Count
);
72
Assert.Equal(1, collector.
Count
);
76
Assert.Equal(1, collector.
Count
);
Logging\FakeLoggerProviderTests.cs (3)
19
Assert.Equal(1, logger.Collector.
Count
);
25
Assert.Equal(2, logger.Collector.
Count
);
31
Assert.Equal(3, logger.Collector.
Count
);
Logging\FakeLoggerTests.cs (9)
34
Assert.Equal(2, logger.Collector.
Count
);
62
Assert.Equal(0, logger.Collector.
Count
);
86
Assert.Equal(1, logger.Collector.
Count
);
171
Assert.Equal(1, logger.Collector.
Count
);
177
Assert.Equal(2, logger.Collector.
Count
);
195
Assert.Equal(1, logger.Collector.
Count
);
217
Assert.Equal(1, logger.Collector.
Count
);
241
Assert.Equal(1, logger.Collector.
Count
);
281
Assert.Equal(1, logger.Collector.
Count
);
Microsoft.Extensions.Telemetry.Tests (7)
Logging\ExtendedLoggerTests.cs (6)
73
Assert.Equal(2, collector.
Count
);
158
Assert.Equal(2, collector.
Count
);
223
Assert.Equal(4, collector.
Count
);
283
Assert.Equal(1, collector.
Count
);
352
Assert.Equal(1, collector.
Count
);
461
Assert.Equal(4, collector.
Count
);
Logging\SerialExtendedLoggerTests.cs (1)
60
Assert.Equal(2, collector.
Count
);
Microsoft.Gen.Logging.Generated.Tests (154)
DataClassificationTests.cs (1)
24
Assert.Equal(1, collector.
Count
);
LoggerFromMemberTests.cs (15)
26
Assert.Equal(1, collector.
Count
);
43
Assert.Equal(1, collector.
Count
);
47
Assert.Equal(1, collector.
Count
);
64
Assert.Equal(1, collector.
Count
);
81
Assert.Equal(1, collector.
Count
);
85
Assert.Equal(1, collector.
Count
);
102
Assert.Equal(1, collector.
Count
);
116
Assert.Equal(1, collector.
Count
);
127
Assert.Equal(0, logger.Collector.
Count
);
132
Assert.Equal(1, logger.Collector.
Count
);
142
Assert.Equal(2, logger.Collector.
Count
);
145
Assert.Equal(1, logger2.Collector.
Count
);
159
Assert.Equal(1, collector.
Count
);
176
Assert.Equal(1, collector.
Count
);
181
Assert.Equal(2, collector.
Count
);
LoggerMessageAttributeTests.cs (13)
23
Assert.Equal(1, collector.
Count
);
36
Assert.Equal(1, collector.
Count
);
49
Assert.Equal(1, collector.
Count
);
55
Assert.Equal(1, collector.
Count
);
68
Assert.Equal(1, collector.
Count
);
74
Assert.Equal(1, collector.
Count
);
80
Assert.Equal(1, collector.
Count
);
93
Assert.Equal(1, collector.
Count
);
99
Assert.Equal(1, collector.
Count
);
112
Assert.Equal(1, collector.
Count
);
140
Assert.Equal(1, collector.
Count
);
146
Assert.Equal(1, collector.
Count
);
155
Assert.Equal(1, collector.
Count
);
LogMethodTests.cs (80)
28
Assert.Equal(1, collector.
Count
);
35
Assert.Equal(1, collector.
Count
);
42
Assert.Equal(1, collector.
Count
);
55
Assert.Equal(1, collector.
Count
);
79
Assert.Equal(0, collector.
Count
);
89
Assert.Equal(1, collector.
Count
);
97
Assert.Equal(1, collector.
Count
);
114
Assert.Equal(1, collector.
Count
);
120
Assert.Equal(1, collector.
Count
);
126
Assert.Equal(1, collector.
Count
);
132
Assert.Equal(1, collector.
Count
);
138
Assert.Equal(1, collector.
Count
);
144
Assert.Equal(1, collector.
Count
);
150
Assert.Equal(1, collector.
Count
);
155
Assert.Equal(1, collector.
Count
);
160
Assert.Equal(1, collector.
Count
);
165
Assert.Equal(1, collector.
Count
);
227
Assert.Equal(1, collector.
Count
);
235
Assert.Equal(1, collector.
Count
);
243
Assert.Equal(1, collector.
Count
);
251
Assert.Equal(1, collector.
Count
);
259
Assert.Equal(1, collector.
Count
);
267
Assert.Equal(1, collector.
Count
);
275
Assert.Equal(1, collector.
Count
);
279
Assert.Equal(1, collector.
Count
);
290
Assert.Equal(1, collector.
Count
);
311
Assert.Equal(1, collector.
Count
);
318
Assert.Equal(1, collector.
Count
);
325
Assert.Equal(1, collector.
Count
);
332
Assert.Equal(1, collector.
Count
);
340
Assert.Equal(1, collector.
Count
);
348
Assert.Equal(1, collector.
Count
);
364
Assert.Equal(1, collector.
Count
);
371
Assert.Equal(1, collector.
Count
);
375
Assert.Equal(1, collector.
Count
);
395
Assert.Equal(1, collector.
Count
);
399
Assert.Equal(1, collector.
Count
);
406
Assert.Equal(1, collector.
Count
);
413
Assert.Equal(1, collector.
Count
);
420
Assert.Equal(1, collector.
Count
);
427
Assert.Equal(1, collector.
Count
);
434
Assert.Equal(1, collector.
Count
);
441
Assert.Equal(1, collector.
Count
);
448
Assert.Equal(1, collector.
Count
);
455
Assert.Equal(1, collector.
Count
);
462
Assert.Equal(1, collector.
Count
);
468
Assert.Equal(1, collector.
Count
);
484
Assert.Equal(1, collector.
Count
);
491
Assert.Equal(1, collector.
Count
);
498
Assert.Equal(1, collector.
Count
);
515
Assert.Equal(0, collector.
Count
);
529
Assert.Equal(1, collector.
Count
);
536
Assert.Equal(1, collector.
Count
);
543
Assert.Equal(1, collector.
Count
);
548
Assert.Equal(1, collector.
Count
);
567
Assert.Equal(1, collector.
Count
);
572
Assert.Equal(1, collector.
Count
);
593
Assert.Equal(1, collector.
Count
);
600
Assert.Equal(1, collector.
Count
);
607
Assert.Equal(1, collector.
Count
);
614
Assert.Equal(1, collector.
Count
);
621
Assert.Equal(1, collector.
Count
);
708
Assert.Equal(0, collector.
Count
);
711
Assert.Equal(0, collector.
Count
);
715
Assert.Equal(1, collector.
Count
);
727
Assert.Equal(1, collector.
Count
);
745
Assert.Equal(2, collector.
Count
);
792
Assert.Equal(2, collector.
Count
);
818
Assert.Equal(0, collector.
Count
);
855
Assert.Equal(1, collector.
Count
);
869
Assert.Equal(1, collector.
Count
);
874
Assert.Equal(1, collector.
Count
);
879
Assert.Equal(1, collector.
Count
);
884
Assert.Equal(1, collector.
Count
);
889
Assert.Equal(1, collector.
Count
);
896
Assert.Equal(1, collector.
Count
);
901
Assert.Equal(1, collector.
Count
);
912
Assert.Equal(1, collector.
Count
);
917
Assert.Equal(1, collector.
Count
);
922
Assert.Equal(1, collector.
Count
);
LogPropertiesRedactionTests.cs (6)
29
Assert.Equal(1, collector.
Count
);
54
Assert.Equal(1, collector.
Count
);
78
Assert.Equal(1, collector.
Count
);
108
Assert.Equal(1, collector.
Count
);
138
Assert.Equal(1, collector.
Count
);
163
Assert.Equal(1, collector.
Count
);
LogPropertiesTests.cs (16)
43
Assert.Equal(1, _logger.Collector.
Count
);
174
Assert.Equal(1, collector.
Count
);
192
Assert.Equal(1, collector.
Count
);
228
Assert.Equal(1, _logger.Collector.
Count
);
301
Assert.Equal(1, _logger.Collector.
Count
);
322
Assert.Equal(1, _logger.Collector.
Count
);
342
Assert.Equal(1, _logger.Collector.
Count
);
363
Assert.Equal(1, _logger.Collector.
Count
);
387
Assert.Equal(1, _logger.Collector.
Count
);
417
Assert.Equal(1, _logger.Collector.
Count
);
445
Assert.Equal(1, _logger.Collector.
Count
);
470
Assert.Equal(1, _logger.Collector.
Count
);
497
Assert.Equal(1, _logger.Collector.
Count
);
521
Assert.Equal(1, _logger.Collector.
Count
);
546
Assert.Equal(1, _logger.Collector.
Count
);
572
Assert.Equal(1, _logger.Collector.
Count
);
PrimaryConstructorTests.cs (4)
25
Assert.Equal(1, collector.
Count
);
39
Assert.Equal(1, collector.
Count
);
53
Assert.Equal(1, collector.
Count
);
67
Assert.Equal(1, collector.
Count
);
TagProviderTests.cs (19)
31
Assert.Equal(1, _logger.Collector.
Count
);
55
Assert.Equal(1, _logger.Collector.
Count
);
80
Assert.Equal(1, _logger.Collector.
Count
);
103
Assert.Equal(1, _logger.Collector.
Count
);
124
Assert.Equal(1, _logger.Collector.
Count
);
135
Assert.Equal(1, _logger.Collector.
Count
);
161
Assert.Equal(1, _logger.Collector.
Count
);
185
Assert.Equal(1, _logger.Collector.
Count
);
205
Assert.Equal(1, _logger.Collector.
Count
);
225
Assert.Equal(1, _logger.Collector.
Count
);
245
Assert.Equal(1, _logger.Collector.
Count
);
267
Assert.Equal(1, _logger.Collector.
Count
);
288
Assert.Equal(1, _logger.Collector.
Count
);
309
Assert.Equal(1, _logger.Collector.
Count
);
329
Assert.Equal(1, _logger.Collector.
Count
);
356
Assert.Equal(1, _logger.Collector.
Count
);
378
Assert.Equal(2, _logger.Collector.
Count
);
393
Assert.Equal(1, _logger.Collector.
Count
);
418
Assert.Equal(1, _logger.Collector.
Count
);