public void TestScaledCopy() { var longHistogram = new LongHistogram(1000, HighestTrackableValue, NumberOfSignificantValueDigits); longHistogram.RecordValue(TestValueLevel); longHistogram.RecordValue(TestValueLevel * 10); longHistogram.RecordValueWithExpectedInterval(longHistogram.HighestTrackableValue - 1, 31000); Console.WriteLine("Testing copy of scaled Histogram:"); AssertEqual(longHistogram, longHistogram.Copy()); var intHistogram = new IntHistogram(1000, HighestTrackableValue, NumberOfSignificantValueDigits); intHistogram.RecordValue(TestValueLevel); intHistogram.RecordValue(TestValueLevel * 10); intHistogram.RecordValueWithExpectedInterval(intHistogram.HighestTrackableValue - 1, 31000); Console.WriteLine("Testing copy of scaled IntHistogram:"); AssertEqual(intHistogram, intHistogram.Copy()); var shortHistogram = new ShortHistogram(1000, HighestTrackableValue, NumberOfSignificantValueDigits); shortHistogram.RecordValue(TestValueLevel); shortHistogram.RecordValue(TestValueLevel * 10); shortHistogram.RecordValueWithExpectedInterval(shortHistogram.HighestTrackableValue - 1, 31000); Console.WriteLine("Testing copy of scaled ShortHistogram:"); AssertEqual(shortHistogram, shortHistogram.Copy()); var syncHistogram = new SynchronizedHistogram(1000, HighestTrackableValue, NumberOfSignificantValueDigits); syncHistogram.RecordValue(TestValueLevel); syncHistogram.RecordValue(TestValueLevel * 10); syncHistogram.RecordValueWithExpectedInterval(syncHistogram.HighestTrackableValue - 1, 31000); Console.WriteLine("Testing copy of scaled SynchronizedHistogram:"); AssertEqual(syncHistogram, syncHistogram.Copy()); }