I need to emulate insertion and removal of SD cards to write tests. What is the best way/tool to implement it in .NET?
Tell me more
×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for
software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.
|
You can write one on Windows with DSF, but I don't think there's a sample for SD cards at this time. |
|||||
|
|
You can use the devcon command line utility to disable/enable the SD card, not very elegant but will be the fastest way. support.microsoft.com/kb/311272 |
|||
|
|
|
Sadly I don't know how to do this myself, but I found this: http://www.codeproject.com/KB/system/usbeject.aspx Could be a good place to start. |
|||
|
|