示例#1
0
            public void ReturnsDiskLimit()
            {
                var limitInBytes = (ulong)7e6;

                ContainerDiskQuota.CurrentLimit().Returns(limitInBytes);
                Assert.Equal(limitInBytes, Container.CurrentDiskLimit());
            }
示例#2
0
            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());
            }