Exemple #1
0
        public void TestUIDDifferent()
        {
            SensorService ss      = new SensorService();
            ISensor       Sensor1 = ss.CreateSensor(0);
            ISensor       Sensor2 = ss.CreateSensor(0);
            ISensor       Sensor3 = ss.CreateSensor(1);
            ISensor       Sensor4 = ss.CreateSensor(1);
            ISensor       Sensor5 = ss.CreateSensor(2);
            ISensor       Sensor6 = ss.CreateSensor(2);

            Assert.AreNotEqual(Sensor1.getSensorUID(), Sensor2.getSensorUID());
            Assert.AreNotEqual(Sensor3.getSensorUID(), Sensor4.getSensorUID());
            Assert.AreNotEqual(Sensor5.getSensorUID(), Sensor6.getSensorUID());
        }