'C# How to Test Hardware Components

We´ve got the challenge to test our hardware service, it turns out to be more difficult. Mostly our hardware are RFID Reader which can perfom Mifare DESFire, Mifare Classic and Legic. We want to start easy with DESFire. The first shot was to write a complete mock reader, which understands Mifare DESFire commands but thats to much overload. Then I´m asking the community, how do you test your hardware components?

I don´t know whether a integration Test is the right way or just unit-tests, which partly mock the reader for exactly one test I´m working on. But then I never go deep down all the code till the point I can´t mock any more.

Is there a common strategy?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source