1 write to Value
Microsoft.Extensions.Diagnostics.Testing (1)
194 references to Value
Aspire.Confluent.Kafka.Tests (22)
MetricsTests.cs (22)
79Assert.Equal(100, collectorProducerQueueMessageCount.LastMeasurement!.Value);
83Assert.Equal(100, collectorConsumerQueueMessageCount.LastMeasurement!.Value);
87Assert.Equal(1638400, collectorProducerQueueSize.LastMeasurement!.Value);
91Assert.Equal(5, collectorNetworkTx.LastMeasurement!.Value);
96Assert.Equal(1638400, collectorNetworkTransmitted.LastMeasurement!.Value);
101Assert.Equal(5, collectorNetworkRx.LastMeasurement!.Value);
106Assert.Equal(1638400, collectorNetworkReceived.LastMeasurement!.Value);
111Assert.Equal(5, collectorMessageTx.LastMeasurement!.Value);
116Assert.Equal(1638400, collectorMessageTransmitted.LastMeasurement!.Value);
121Assert.Equal(5, collectorMessageRx.LastMeasurement!.Value);
126Assert.Equal(1638400, collectorMessageReceived.LastMeasurement!.Value);
196Assert.Equal(200, collectorProducerQueueMessageCount.LastMeasurement!.Value);
200Assert.Equal(200, collectorConsumerQueueMessageCount.LastMeasurement!.Value);
204Assert.Equal(3276800, collectorProducerQueueSize.LastMeasurement!.Value);
208Assert.Equal(5, collectorNetworkTx.LastMeasurement!.Value);
213Assert.Equal(1638400, collectorNetworkTransmitted.LastMeasurement!.Value);
218Assert.Equal(5, collectorNetworkRx.LastMeasurement!.Value);
223Assert.Equal(1638400, collectorNetworkReceived.LastMeasurement!.Value);
228Assert.Equal(5, collectorMessageTx.LastMeasurement!.Value);
233Assert.Equal(1638400, collectorMessageTransmitted.LastMeasurement!.Value);
238Assert.Equal(5, collectorMessageRx.LastMeasurement!.Value);
243Assert.Equal(1638400, collectorMessageReceived.LastMeasurement!.Value);
InMemory.FunctionalTests (10)
KestrelMetricsTests.cs (9)
516Assert.Collection(currentUpgradedRequests.GetMeasurementSnapshot(), m => Assert.Equal(1, m.Value), m => Assert.Equal(-1, m.Value));
751Assert.True(m.Value > 0);
755Assert.Collection(activeTlsHandshakes.GetMeasurementSnapshot(), m => Assert.Equal(1, m.Value), m => Assert.Equal(-1, m.Value));
759Assert.Equal(expectedValue, measurement.Value);
911Assert.True(m.Value > 0);
932Assert.True(measurement.Value > 0);
988Assert.Equal(expectedValue, measurement.Value);
Interop.FunctionalTests (2)
Microsoft.AspNetCore.Diagnostics.Tests (8)
Microsoft.AspNetCore.HeaderParsing.Tests (2)
Microsoft.AspNetCore.Hosting.Tests (49)
HostingApplicationDiagnosticsTests.cs (31)
86m => Assert.Equal(1, m.Value),
87m => Assert.Equal(-1, m.Value));
89m => Assert.Equal(1, m.Value),
90m => Assert.Equal(-1, m.Value));
92m => Assert.True(m.Value > 0));
94m => Assert.True(m.Value > 0));
120m => Assert.Equal(1, m.Value),
121m => Assert.Equal(-1, m.Value),
122m => Assert.Equal(1, m.Value),
123m => Assert.Equal(-1, m.Value));
125m => Assert.Equal(1, m.Value),
126m => Assert.Equal(-1, m.Value),
127m => Assert.Equal(1, m.Value),
128m => Assert.Equal(-1, m.Value));
130m => Assert.True(m.Value > 0),
131m => Assert.True(m.Value > 0));
133m => Assert.True(m.Value > 0),
134m => Assert.True(m.Value > 0));
258Assert.Equal(1, m.Value);
274Assert.Equal(1, m.Value);
280Assert.Equal(-1, m.Value);
317Assert.Equal(1, m.Value);
333Assert.Equal(1, m.Value);
339Assert.Equal(-1, m.Value);
346Assert.True(m.Value > 0);
377Assert.Equal(1, m.Value);
393Assert.Equal(1, m.Value);
399Assert.Equal(-1, m.Value);
432Assert.Equal(1, m.Value);
448Assert.Equal(1, m.Value);
454Assert.Equal(-1, m.Value);
HostingMetricsTests.cs (18)
42m => Assert.Equal(1, m.Value),
43m => Assert.Equal(-1, m.Value));
54m => Assert.Equal(1, m.Value),
55m => Assert.Equal(-1, m.Value),
56m => Assert.Equal(1, m.Value),
57m => Assert.Equal(-1, m.Value));
69m => Assert.Equal(1, m.Value),
70m => Assert.Equal(-1, m.Value),
71m => Assert.Equal(1, m.Value),
72m => Assert.Equal(-1, m.Value),
73m => Assert.Equal(1, m.Value));
81m => Assert.Equal(1, m.Value),
82m => Assert.Equal(-1, m.Value),
83m => Assert.Equal(1, m.Value),
84m => Assert.Equal(-1, m.Value),
85m => Assert.Equal(1, m.Value),
86m => Assert.Equal(-1, m.Value));
94Assert.True(measurement.Value > 0);
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.RateLimiting.Tests (3)
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (15)
Microsoft.Extensions.Diagnostics.Testing (8)
Microsoft.Extensions.Diagnostics.Testing.Tests (19)
Metrics\MetricCollectorTests.cs (11)
65Assert.Equal(3, collector.LastMeasurement.Value);
75Assert.Equal(2, collector.LastMeasurement.Value);
110Assert.Equal(3, collector.LastMeasurement.Value);
120Assert.Equal(2, collector.LastMeasurement.Value);
157Assert.Equal(3, collector.LastMeasurement.Value);
167Assert.Equal(2, collector.LastMeasurement.Value);
218Assert.Equal(3, collector.LastMeasurement.Value);
228Assert.Equal(2, collector.LastMeasurement.Value);
402Assert.Equal(1, snap[0].Value);
406Assert.Equal(2, snap[1].Value);
410Assert.Equal(3, snap[2].Value);
Microsoft.Gen.Metrics.Generated.Tests (50)
MetricTests.cs (32)
56Assert.Collection(measurements, x => Assert.Equal(10L, x.Value), x => Assert.Equal(5L, x.Value));
70Assert.Equal(Value, measurement.Value);
83Assert.Collection(measurements, x => Assert.Equal(12L, x.Value), x => Assert.Equal(6L, x.Value));
97Assert.Equal(Value, measurement.Value);
111Assert.Collection(measurements, x => Assert.Equal(10, x.Value), x => Assert.Equal(5, x.Value));
125Assert.Equal(Value, measurement.Value);
139Assert.Collection(measurements, x => Assert.Equal(12, x.Value), x => Assert.Equal(6, x.Value));
153Assert.Equal(Value, measurement.Value);
172Assert.All(measurements, x => Assert.Equal(Value, x.Value));
196Assert.All(measurements, x => Assert.Equal(Value, x.Value));
252Assert.Equal(17L, measurement.Value);
258Assert.Equal(5L, measurement.Value);
265Assert.Equal(5L, measurement.Value);
277Assert.Equal(10L, measurement.Value);
283Assert.Equal(5L, measurement.Value);
290Assert.Equal(5L, measurement.Value);
302Assert.Equal(12L, measurement.Value);
315Assert.Equal(1.05D, measurement.Value);
328Assert.Equal(100_500L, measurement.Value);
341Assert.Equal(100L, measurement.Value);
362Assert.Equal(10L, measurement.Value);
406Assert.Equal(1L, measurement.Value);
429Assert.Equal(2L, measurement.Value);
452Assert.Equal(3L, measurement.Value);
505Assert.Equal(11L, measurement.Value);
549Assert.Equal(1M, measurement.Value);
572Assert.Equal(2M, measurement.Value);
594Assert.Equal(3M, measurement.Value);
MetricTests.Ext.cs (18)
42Assert.Collection(measurements, x => Assert.Equal(10L, x.Value), x => Assert.Equal(5L, x.Value));
54Assert.Equal(11L, measurement.Value);
67Assert.Collection(measurements, x => Assert.Equal(12L, x.Value), x => Assert.Equal(6L, x.Value));
80Assert.Equal(17L, measurement.Value);
94Assert.Collection(measurements, x => Assert.Equal(10, x.Value), x => Assert.Equal(5, x.Value));
107Assert.Equal(11, measurement.Value);
121Assert.Collection(measurements, x => Assert.Equal(12, x.Value), x => Assert.Equal(6, x.Value));
134Assert.Equal(17, measurement.Value);
169Assert.Equal(1L, measurement.Value);
191Assert.Equal(2L, measurement.Value);
213Assert.Equal(3L, measurement.Value);
262Assert.Equal(1M, measurement.Value);
284Assert.Equal(2M, measurement.Value);
306Assert.Equal(3M, measurement.Value);