jcurl / RJCP.DLL.SerialPortStream

SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
Microsoft Public License
624 stars 197 forks source link

Extract interface ISerialPortStream for better testing/mocking #77

Closed tedvanderveen closed 5 years ago

tedvanderveen commented 5 years ago

For UnitTests, there are no actual Com ports and connected devices available, so in an ideal world creating a Mock (using Moq for example) requires no actual implementation, just an interface to mock.

jcurl commented 5 years ago

This is now in v2.x branch after cleaning up.

tedvanderveen commented 5 years ago

@jcurl can you please publish new Nuget package with this new ISerialPortStream reflected?