public void TransferSpeedCaptureTest(TransferSpeedType speedType) { _nodeStats = new NodeStatsLight(_node); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 30); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 51); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 140); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 110); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 133); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 51); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 140); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 110); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 133); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 51); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 140); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 110); _nodeStats.AddTransferSpeedCaptureEvent(speedType, 133); var av = _nodeStats.GetAverageTransferSpeed(speedType); Assert.AreEqual(102, av); var paddedAv = _nodeStats.GetPaddedAverageTransferSpeed(speedType); Assert.AreEqual(" 102", paddedAv); }