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

                ContainerDiskQuota.CurrentLimit().Returns(limitInBytes);
                Assert.Equal(limitInBytes, Container.CurrentDiskLimit());
            }
예제 #2
0
 public void SetsUserDiskLimit()
 {
     Container.LimitDisk(5);
     ContainerDiskQuota.Received(1).SetQuotaLimit(5);
 }
예제 #3
0
 public void DeletesDiskQuota()
 {
     Container.Destroy();
     ContainerDiskQuota.Received(1).DeleteQuota();
 }