Example #1
0
        public void GetExistingDriveFreeSpaceTest()
        {
            var space = FreeSpaceHelper.GetDriveFreeSpace("C");

            Assert.NotNull(space);
            Assert.NotEqual(0, space.Value);
        }
Example #2
0
        public void GetNonExistingDriveFreeSpaceTest()
        {
            var space = FreeSpaceHelper.GetDriveFreeSpace("-");

            Assert.Null(space);
        }