I write an application in C# that performs tasks when a SD card is mounted or unmounted. It acts on DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE messages. Now I want to write tests that check if the application reacts correctly on these events. How can I simulate the arrival and removal of an SD card in a Unit Test?
Thanks
Aucun commentaire:
Enregistrer un commentaire