Exemplo n.º 1
0
        public void Test_DbmTxPowerRadioTapField()
        {
            DbmTxPowerRadioTapField field = new DbmTxPowerRadioTapField(100);

            var bytes = new Byte[field.Length];

            field.CopyTo(bytes, 0);

            DbmTxPowerRadioTapField recreatedField = new DbmTxPowerRadioTapField(new BinaryReader(new MemoryStream(bytes)));

            Assert.AreEqual(field.TxPowerdBm, recreatedField.TxPowerdBm);
        }
Exemplo n.º 2
0
 public void Test_DbmTxPowerRadioTapField()
 {
     DbmTxPowerRadioTapField field = new DbmTxPowerRadioTapField(100);
     
     var bytes = new byte[field.Length];
     field.CopyTo(bytes, 0);
     
     DbmTxPowerRadioTapField recreatedField = new DbmTxPowerRadioTapField(new BinaryReader (new MemoryStream(bytes)));
     
     Assert.AreEqual(field.TxPowerdBm, recreatedField.TxPowerdBm);
 }