Beispiel #1
0
        public void GetStationID()
        {
            string uid = jbc_api.GetStationInternalUID(station_id);
            long   id  = jbc_api.GetStationID(uid);

            Debug.WriteLine("STATION ID:" + station_id + "UID: " + uid);

            Assert.AreEqual(station_id, id);

            // Checking the error case
            jbc_api.UserError -= JBC_UserError;
            jbc_api.UserError += JBC_StationIDError;

            string wrong_uid = "wrong_uid";
            long   wrong_id  = jbc_api.GetStationID(wrong_uid);
        }