2 instantiations of DummyProvider
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
IResourceUtilizationSnapshotProviderTests.cs (2)
14
var provider = new
DummyProvider
();
24
var snapshot = new
DummyProvider
().GetSnapshot();
16 references to DummyProvider
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (16)
Helpers\DummyProvider.cs (7)
20
DummyProvider
.CpuUnits,
21
DummyProvider
.CpuUnits,
22
DummyProvider
.MemoryTotalInBytes,
23
DummyProvider
.MemoryTotalInBytes);
29
kernelTimeSinceStart:
DummyProvider
.KernelTimeSinceStart,
30
userTimeSinceStart:
DummyProvider
.UserTimeSinceStart,
31
memoryUsageInBytes:
DummyProvider
.MemoryUsageInBytes);
IResourceUtilizationSnapshotProviderTests.cs (9)
14
var
provider = new DummyProvider();
15
Assert.Equal(
DummyProvider
.CpuUnits, provider.Resources.GuaranteedCpuUnits);
16
Assert.Equal(
DummyProvider
.CpuUnits, provider.Resources.MaximumCpuUnits);
17
Assert.Equal(
DummyProvider
.MemoryTotalInBytes, provider.Resources.GuaranteedMemoryInBytes);
18
Assert.Equal(
DummyProvider
.MemoryTotalInBytes, provider.Resources.MaximumMemoryInBytes);
25
Assert.Equal(
DummyProvider
.KernelTimeSinceStart, snapshot.KernelTimeSinceStart);
26
Assert.Equal(
DummyProvider
.MemoryUsageInBytes, snapshot.MemoryUsageInBytes);
27
Assert.Equal(
DummyProvider
.SnapshotTimeClock.GetUtcNow().Ticks, snapshot.TotalTimeSinceStart.Ticks);
28
Assert.Equal(
DummyProvider
.UserTimeSinceStart, snapshot.UserTimeSinceStart);