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 })); }
public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldReturnRssi() { // Act var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent()) as EddystoneUrl; // Assert Assert.That(eddystone.Rssi, Is.EqualTo(-52)); }
public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldNotBeOfTypeEddystoneUrl() { // Act var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent()); // Assert Assert.That(eddystone, Is.InstanceOf <EddystoneUrl>()); }
public void Eddystone_Parse_EddystoneUrlAdvertisingEvent_ShouldNotBeNull() { // Act var eddystone = Eddystone.Parse(EddystoneUrlAdvertisingEvent()); // Assert Assert.That(eddystone, Is.Not.Null); }
public void Eddystone_Parse_EddystoneUidAdvertisingEvent_ShouldReturnCalibratedTxPower() { // Act var eddystone = Eddystone.Parse(EddystoneUidAdvertisingEvent) as EddystoneUid; // Assert Assert.That(eddystone.CalibratedTxPower, Is.EqualTo(-18)); }
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 })); }
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 })); }