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