Arduino.cs Unit Tests

This is the main class of the application and as such, it has the most extensive list of unit tests.

A line through the test indicates that it has been written and checked in to the source repository.

Arduino.FirmataMajorVersion - Property showing Firmata version info. Arduino.FirmataMinorVersion - Property showing Firmata version info. Arduino.FirmataName - Property showing Firmata version text description (should be the Arduino sketch name). Arduino.PortName - The name of the serial port that the Arduino class instance is configured to use. Arduino.BaudRate - The baud rate that the Arduino class instance is configured to use for serial communication. Arduino.DigitalPinState - The state of the digital pins, high (1) or low (0) for each bit representing a pin. Arduino() - The default constructor. Arduino(string portName) - Constructs using only the port name. Arduino(string portName, int baudRate) - Constructs using port name and baud rate. Arduino(string portName, int baudRate, true) - Constructs the object and automatically opens the connection. Arduino.Events - The events that the Arduino object raises. Arduino.GetAnalogValue(int pinNumber) - Gets the value of an analog pin. Arduino.Connect() - This method is used to attach to a connected Arduino. Arduino.Disconnect() - This method is used to disconnect a connected Arduino. Arduino.Post(byte[] message) - This method is used to post a message to a connected Arduino. Arduino.Dispose() - This method disposes of the object.