public void Reset() { var dp = new DownloadProgress(); dp.Download(0, 10); dp.Download(10, 10); dp.Reset(); Assert.AreEqual(0, dp.Downloaded); }
public void HighWaterMark() { var dp = new DownloadProgress(); Assert.AreEqual(0, dp.HighWaterMark); dp.Download(20, 10); Assert.AreEqual(30, dp.HighWaterMark); dp.Download(20, 15); Assert.AreEqual(35, dp.HighWaterMark); dp.Reset(); Assert.AreEqual(0, dp.HighWaterMark); }