public void TestRequest()
{
byte[] request = new byte[] {0x00, 0x01, 0x00, 0x00, 0x21, 0x12, 0xa4,
0x42, 0x99, 0x7b, 0x63, 0x08, 0x17, 0x9d, 0x00, 0xbc, 0xe9, 0xb5, 0x9f,
0x57};
MemBlock req = MemBlock.Reference(request);
StunPacket from_mb = new StunPacket(req);
StunPacket from_input = new StunPacket(StunPacket.ClassType.Request,
StunPacket.MessageType.Binding, StunPacket.EMPTY_ATTRIBUTES);
from_input = new StunPacket(from_input.Data);
Assert.AreEqual(from_mb.Attributes, from_input.Attributes, "Attributes");
Assert.AreEqual(from_mb.Message, from_input.Message, "Message");
Assert.AreEqual(from_mb.Class, from_input.Class, "Class");
Assert.AreEqual(from_mb.Data.Length, from_input.Data.Length, "Length");
}