/// <exception cref="System.IO.IOException"/> public virtual void TestDUGetUsedWillNotReturnNegative() { FilePath file = new FilePath(DuDir, "data"); Assert.True(file.CreateNewFile()); Configuration conf = new Configuration(); conf.SetLong(CommonConfigurationKeys.FsDuIntervalKey, 10000L); DU du = new DU(file, conf); du.DecDfsUsed(long.MaxValue); long duSize = du.GetUsed(); Assert.True(duSize.ToString(), duSize >= 0L); }