Create Pex test to test a DLL and hardware controlled by that DLL?
I have some hardware that has an api in that is controlled by a DLL. I have written some unit tests in nunit that will call the appropriate pieces of the API and do a test.
For instance I might have a "get data test", that has an 1. open, 2. read on one side and 3. send on the other, and the assert is whether or not the data is correct.
I am thinking Pex might do a good job of manipulating that data piece.
My question is since I am sitting on top of a DLL and I really need to piece several things together for the test how do I implement Pex here (I also know next to nothing of Pex at this time)?
Do I somehow need to create an API that I control above the DLL that has read and sends and let Pex go at this layer to create it's test?
Edit: I did some more research and watched a great video over at http://channel9.msdn.com/posts/Peli/Getting-started-with-Pex-in-Visual-Studio-2008/
I am questioning the ability to do this. Sounds like Pex will be great to create tests but not really a whole system (api plus hardware plus data)