[Mono-dev] Fixing bug 39915 (DriveInfo.VolumeLabel does not return Volume Label under Windows)
horst at kakuschke.de
Fri Apr 7 13:28:42 UTC 2017
as I recently also suffered from Bug 39915 under Windows OS, I would like to
Handling volume labels under Windows OS could be done via Windows API
functions GetVolumeInformation() and SetVolumeLabel() respectively (like
getting DriveInfo.TotalFreeSpace is handled via Windows API function
But, I just don't have any idea how to write test cases for this:
- to test the getter of DriveInfo.VolumeLabel one would need to know the
volume labels of the drives of the test machine
- to test the setter of DriveInfo.VolumeLabel one would have to alter the
volume label of at least one of the drives of the test machine.
Any suggestions or ideas?
View this message in context: http://mono.1490590.n4.nabble.com/Fixing-bug-39915-DriveInfo-VolumeLabel-does-not-return-Volume-Label-under-Windows-tp4670441.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list