private void When_setting_only_capacity_it_must_succeed()
        {
            // Arrange
            var builder = new FakeVolumeInfoBuilder();

            // Act
            FakeVolumeInfo volume = builder
                                    .OfCapacity(2048)
                                    .Build();

            // Assert
            volume.CapacityInBytes.Should().Be(2048);
            volume.FreeSpaceInBytes.Should().Be(2048);
        }
        private void When_setting_used_space_it_must_override()
        {
            // Arrange
            var builder = new FakeVolumeInfoBuilder();

            // Act
            FakeVolumeInfo volume = builder
                                    .OfCapacity(2048)
                                    .WithFreeSpace(12345678)
                                    .WithUsedSpace(512)
                                    .Build();

            // Assert
            volume.CapacityInBytes.Should().Be(2048);
            volume.FreeSpaceInBytes.Should().Be(1536);
        }
        private void When_setting_properties_with_used_space_it_must_succeed()
        {
            // Arrange
            var builder = new FakeVolumeInfoBuilder();

            // Act
            FakeVolumeInfo volume = builder
                                    .OfCapacity(2048)
                                    .WithUsedSpace(512)
                                    .OfType(DriveType.Ram)
                                    .InFormat("FAT16")
                                    .Labeled("DataDisk")
                                    .Build();

            // Assert
            volume.CapacityInBytes.Should().Be(2048);
            volume.FreeSpaceInBytes.Should().Be(1536);
            volume.Type.Should().Be(DriveType.Ram);
            volume.Format.Should().Be("FAT16");
            volume.Label.Should().Be("DataDisk");
        }