public void ReturnsDiskLimit() { var limitInBytes = (ulong)7e6; ContainerDiskQuota.CurrentLimit().Returns(limitInBytes); Assert.Equal(limitInBytes, Container.CurrentDiskLimit()); }
public void ReturnsDiskLimit() { ulong limitInBytes = 2048; var quota = Substitute.For <DIDiskQuotaUser>(); quota.QuotaLimit = limitInBytes; this.DiskQuotaControl.FindUser(User.SID).Returns(quota); Assert.Equal(limitInBytes, Container.CurrentDiskLimit()); }