public void GetTotalSpace_returns_some_values_and_does_not_throw_exceptions() { var letter = DriveTestHelpers.GetDriveLetter(); Console.WriteLine($"Drive letter: {letter}"); using (var meter = new DiskSpaceMeter(letter)) { var totalSpaceResults = TestHelpers.GetMeterValues( () => meter.GetTotalSpaceBytes(), 100.Milliseconds(), 5); Console.WriteLine(string.Join(", ", totalSpaceResults)); } }
public void Returns_some_values_and_does_not_throw_exceptions() { var letter = DriveTestHelpers.GetDriveLetter(); Console.WriteLine($"Drive letter: {letter}"); using (var meter = new LogicalDiskMeter(letter[0])) { var results = TestHelpers.GetMeterValues( () => meter.GetDiskMetrics(), 1.Seconds(), 5); Console.WriteLine(string.Join(Environment.NewLine, results.Select(x => x.ToString()))); } }