public void TestBeaconsWithDifferentId2AreNotEqual()
        {
            Beacon beacon1 = new Beacon.Builder().SetId1("1").SetId2("2").SetId3("3").SetRssi(4)
                .SetBeaconTypeCode(5).SetTxPower(6).SetBluetoothAddress("1:2:3:4:5:6").Build();

            Beacon beacon2 = new Beacon.Builder().SetId1("1").SetId2("12").SetId3("3").SetRssi(4)
                .SetBeaconTypeCode(5).SetTxPower(6).SetBluetoothAddress("1:2:3:4:5:6").Build();

            Assert.IsTrue(!beacon1.Equals(beacon2), "Beacons with different id2 are not equal");
        }
Ejemplo n.º 2
0
        public void TestBeaconsWithDifferentId3AreNotEqual()
        {
            Beacon beacon1 = new Beacon.Builder().SetId1("1").SetId2("2").SetId3("3").SetRssi(4)
                             .SetBeaconTypeCode(5).SetTxPower(6).SetBluetoothAddress("1:2:3:4:5:6").Build();

            Beacon beacon2 = new Beacon.Builder().SetId1("1").SetId2("2").SetId3("13").SetRssi(4)
                             .SetBeaconTypeCode(5).SetTxPower(6).SetBluetoothAddress("1:2:3:4:5:6").Build();

            Assert.IsTrue(!beacon1.Equals(beacon2), "Beacons with different id3 are not equal");
        }