Some time ago, I modified the class library and put it in Google's open-source project;
Open Source Address: http://code.google.com/p/gsmmodem/
It took some time to learn the unit test and add a test project. If the unit test found a lot of bugs at the same time, it was modified and put on Google as the open-source project gsmmodem.
Project file structure:
Exception Folder:ProgramThe exception handling is a systematic change (the original class library has almost no exception mechanism). Only one class is added, and exception handling is not added yet, which needs to be improved; iserialport interface: the test project is used to test the serial port. Because SMS messages are charged and take a long time, the test uses Moq to create a mock object for the serial port.
Test Project: The unit test framework selects the open-source unit test framework xunit.net, And the mock framework selects the easy-to-use open-source framework Moq, because Moq is based on. net3.5, so the test project uses. net3.5, while the class library is still. net2.0.
The official version 1.0.0 has been released. Complete unit tests and sample programs have been added.
The project structure has changed:
The original iserialport was changed to Icom. The original interface was too complicated and almost all SerialPort members were included. The new interface ICOM only took the most common part and simplified the relevant content;
Project Structure of the sample program:
The sample program is inArticle<7> the simplified version program is changed.
Thank you for your support.