Exemplo n.º 1
0
        public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldReturnAddress()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent()) as EddystoneUrl;

            // Assert
            Assert.That(eddystone.Address, Is.EqualTo(new byte[] { 0xA6, 0xA5, 0xA4, 0xA3, 0xA2, 0xA1 }));
        }
Exemplo n.º 2
0
        public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldReturnRssi()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent()) as EddystoneUrl;

            // Assert
            Assert.That(eddystone.Rssi, Is.EqualTo(-52));
        }
Exemplo n.º 3
0
        public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldNotBeOfTypeEddystoneUrl()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent());

            // Assert
            Assert.That(eddystone, Is.InstanceOf <EddystoneUrl>());
        }
Exemplo n.º 4
0
        public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldNotBeNull()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent());

            // Assert
            Assert.That(eddystone, Is.Not.Null);
        }
Exemplo n.º 5
0
        public void Eddystone_Parse_EddystoneUidAdvertisingEvent_ShouldReturnCalibratedTxPower()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUidAdvertisingEvent) as EddystoneUid;

            // Assert
            Assert.That(eddystone.CalibratedTxPower, Is.EqualTo(-18));
        }
Exemplo n.º 6
0
        public void Eddystone_Parse_EddystoneUidAdvertisingEvent_ShouldReturnInstance()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUidAdvertisingEvent) as EddystoneUid;

            // Assert
            Assert.That(eddystone.Instance, Is.EqualTo(new byte[] { 0x11, 0x12, 0x13, 0x14, 0x15, 0x16 }));
        }
Exemplo n.º 7
0
        public void Eddystone_Parse_EddystoneUidAdvertisingEvent_ShouldReturnNamespace()
        {
            // Act
            var eddystone = Eddystone.Parse(EddystoneUidAdvertisingEvent) as EddystoneUid;

            // Assert
            Assert.That(eddystone.Namespace, Is.EqualTo(new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A }));
        }