Esempio n. 1
0
            public void Test_SetCompressedBitmapProperty()
            {
                BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField();

                blockAckControl.CompressedBitmap = true;
                Assert.IsTrue(blockAckControl.CompressedBitmap);
            }
Esempio n. 2
0
            public void Test_SetTidProperty()
            {
                BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField();

                blockAckControl.Tid = 0xF;
                Assert.AreEqual(0xF, blockAckControl.Tid);
            }
 public void Test_SetTidProperty ()
 {
     BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField ();
     
     blockAckControl.Tid = 0xF;
     Assert.AreEqual (0xF, blockAckControl.Tid);
 }
Esempio n. 4
0
            public void Test_SetMultiTidProperty()
            {
                BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField();

                blockAckControl.MultiTid = true;
                Assert.IsTrue(blockAckControl.MultiTid);
            }
 public void Test_SetCompressedBitmapProperty ()
 {
     BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField ();
     
     blockAckControl.CompressedBitmap = true;
     Assert.IsTrue (blockAckControl.CompressedBitmap);
 }
 public void Test_SetMultiTidProperty ()
 {
     BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField ();
     
     blockAckControl.MultiTid = true;
     Assert.IsTrue(blockAckControl.MultiTid);
 }
Esempio n. 7
0
            public void Test_SetPolicyProperty()
            {
                BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField();

                blockAckControl.Policy = BlockAcknowledgmentControlField.AcknowledgementPolicy.Delayed;
                Assert.AreEqual(BlockAcknowledgmentControlField.AcknowledgementPolicy.Delayed, blockAckControl.Policy);

                blockAckControl.Policy = BlockAcknowledgmentControlField.AcknowledgementPolicy.Immediate;
                Assert.AreEqual(BlockAcknowledgmentControlField.AcknowledgementPolicy.Immediate, blockAckControl.Policy);
            }
 public void Test_SetPolicyProperty ()
 {
     BlockAcknowledgmentControlField blockAckControl = new BlockAcknowledgmentControlField ();
     
     blockAckControl.Policy = BlockAcknowledgmentControlField.AcknowledgementPolicy.Delayed;
     Assert.AreEqual (BlockAcknowledgmentControlField.AcknowledgementPolicy.Delayed, blockAckControl.Policy);
     
     blockAckControl.Policy = BlockAcknowledgmentControlField.AcknowledgementPolicy.Immediate;
     Assert.AreEqual (BlockAcknowledgmentControlField.AcknowledgementPolicy.Immediate, blockAckControl.Policy);
     
 }
Esempio n. 9
0
            /// <summary>
            /// Constructor
            /// </summary>
            /// <param name="bas">
            /// A <see cref="ByteArraySegment"/>
            /// </param>
            public BlockAcknowledgmentRequestFrame(ByteArraySegment bas)
            {
                header = new ByteArraySegment(bas);

                FrameControl                    = new FrameControlField(FrameControlBytes);
                Duration                        = new DurationField(DurationBytes);
                ReceiverAddress                 = GetAddress(0);
                TransmitterAddress              = GetAddress(1);
                BlockAcknowledgmentControl      = new BlockAcknowledgmentControlField(BlockAckRequestControlBytes);
                BlockAckStartingSequenceControl = BlockAckStartingSequenceControlBytes;

                header.Length = FrameSize;
            }
            /// <summary>
            /// Constructor
            /// </summary>
            /// <param name="bas">
            /// A <see cref="ByteArraySegment"/>
            /// </param>
            public BlockAcknowledgmentRequestFrame (ByteArraySegment bas)
            {
                header = new ByteArraySegment (bas);

                FrameControl = new FrameControlField (FrameControlBytes);
                Duration = new DurationField (DurationBytes);
                ReceiverAddress = GetAddress (0);
                TransmitterAddress = GetAddress (1);
                BlockAcknowledgmentControl = new BlockAcknowledgmentControlField (BlockAckRequestControlBytes);
                BlockAckStartingSequenceControl = BlockAckStartingSequenceControlBytes;
                
                header.Length = FrameSize;
            }