ticketmaster / poshspec

Infrastructure Testing DSL running in Pester
MIT License
183 stars 32 forks source link

Added Volume test #30

Closed devblackops closed 8 years ago

devblackops commented 8 years ago

This adds the ability to test either the properties of a volume, or for the existence of the volume itself. This is based on @beaudryj's PR that is not able to be merged.

Usage:

Describe 'Volume' {
    Volume C DriveType { Should Be 'Fixed' }
    Volume C FileSystem { Should Be 'NTFS' }
    Volume X { Should BeNullOrEmpty }
    Volume ShouldNotExist { Should BeNullOrEmpty }
}