Exemple #1
0
        public void FilledFormulaeTest()
        {
            string PIDreturn_engineLoad = "7E8 03 41 04 FF";
            // 0x03 bytes, mode (0x41 - 0x40) = 0x01, PID 0x04, message 0xFF = 0d255
            // betekenis: Calculated engine load value (%). Formule: A*100/255 = 255*100/255 = 100%
            string expectedAnswer = "100";
            Koos__OBD_Communicator.MainPage MPage = new Koos__OBD_Communicator.MainPage();
            MPage.configData.parseOBDResponse(PIDreturn_engineLoad);

            DateTime startWaiting = DateTime.Now;
            while (DateTime.Now < startWaiting.AddSeconds(1)) ;
            Assert.Equals(MPage.DisplayValues[4].Text, expectedAnswer);
        }
Exemple #2
0
        public void FilledFormulaeTest()
        {
            string PIDreturn_engineLoad = "7E8 03 41 04 FF";
            // 0x03 bytes, mode (0x41 - 0x40) = 0x01, PID 0x04, message 0xFF = 0d255
            // betekenis: Calculated engine load value (%). Formule: A*100/255 = 255*100/255 = 100%
            string expectedAnswer = "100";

            Koos__OBD_Communicator.MainPage MPage = new Koos__OBD_Communicator.MainPage();
            MPage.configData.parseOBDResponse(PIDreturn_engineLoad);

            DateTime startWaiting = DateTime.Now;

            while (DateTime.Now < startWaiting.AddSeconds(1))
            {
                ;
            }
            Assert.Equals(MPage.DisplayValues[4].Text, expectedAnswer);
        }
Exemple #3
0
 public void EmptyFormulaTest()
 {
     Koos__OBD_Communicator.MainPage MPage = new Koos__OBD_Communicator.MainPage();
     MPage.configData.parseOBDResponse("7E8 01 01 04 00 07 E1 00");
 }
Exemple #4
0
 public void MainPageTest()
 {
     Koos__OBD_Communicator.MainPage MPage = new Koos__OBD_Communicator.MainPage();
     Assert.IsNotNull(MPage);
 }
Exemple #5
0
 public void MainPageTest()
 {
     Koos__OBD_Communicator.MainPage MPage = new Koos__OBD_Communicator.MainPage();
     Assert.IsNotNull(MPage);
 }
Exemple #6
0
 public void EmptyFormulaTest()
 {
     Koos__OBD_Communicator.MainPage MPage = new Koos__OBD_Communicator.MainPage();
     MPage.configData.parseOBDResponse("7E8 01 01 04 00 07 E1 00");
 }