Implementation of sms cat (C #) Open-source class library

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.