示例#1
0
        public Form1()
        {
            InitializeComponent();
            ports = System.IO.Ports.SerialPort.GetPortNames();
            comboBox1.Items.AddRange(ports);

            obd = new OBD.Sensors(this);
        }
示例#2
0
 public void Supported_PIDsTest()
 {
     OBD.Sensors target = new OBD.Sensors(); // TODO: Initialize to an appropriate value
     OBD.Sensors.ReturnSet expected = null; // TODO: Initialize to an appropriate value
     OBD.Sensors.ReturnSet actual;
     actual = target.Supported_PIDs();
     Assert.AreEqual("2730", actual.result);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
示例#3
0
 public void Aux_input_statusTest()
 {
     OBD.Sensors target = new OBD.Sensors(); // TODO: Initialize to an appropriate value
     OBD.Sensors.ReturnSet expected = null; // TODO: Initialize to an appropriate value
     OBD.Sensors.ReturnSet actual;
     actual = target.Aux_input_status();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
示例#4
0
 public void Vehicle_SpeedTest()
 {
     OBD.Sensors target = new OBD.Sensors(frm);
     OBD.Sensors.ReturnSet expected = new OBD.Sensors.ReturnSet();
     OBD.Sensors.ReturnSet actual;
     actual = target.Vehicle_Speed();
     System.Console.WriteLine(actual.result,actual.RawValue);
     Assert.AreNotEqual("", actual.result);
 }
示例#5
0
 public void Timing_AdvanceTest()
 {
     OBD.Sensors target = new OBD.Sensors(frm);
     OBD.Sensors.ReturnSet expected = null; // TODO: Initialize to an appropriate value
     OBD.Sensors.ReturnSet actual;
     actual = target.Timing_Advance();
     Assert.AreNotEqual("", actual);
 }
示例#6
0
 public void OBD_SensorsConstructorTest()
 {
     OBD.Sensors target = new OBD.Sensors();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
示例#7
0
 public void HexToIntTest()
 {
     OBD.Sensors target = new OBD.Sensors(); // TODO: Initialize to an appropriate value
     string hex = string.Empty; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.HexToInt(hex);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }