public void TransformSample_CallExpectedMethods() { var expectedMemoryPhysicalMetric = _metricBuilder.TryBuildMemoryPhysicalMetric(2); var expectedMemoryWorkingSetMetric = _metricBuilder.TryBuildMemoryWorkingSetMetric(4); var sample = new ImmutableMemorySample(2, 4); Transform(sample); Mock.Assert(() => _metricAggregator.Collect(expectedMemoryPhysicalMetric)); Mock.Assert(() => _metricAggregator.Collect(expectedMemoryWorkingSetMetric)); }
private void RecordMemoryWorkingSetMetric(long memoryValue) { var unscopedMemoryPhysicalMetric = _metricBuilder.TryBuildMemoryWorkingSetMetric(memoryValue); RecordMetric(unscopedMemoryPhysicalMetric); }