public void DeserializeHops(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.Hops, packet.Hops); Assert.Equal(testPacket.Hops, packet.Hops); }
public void DeserializeHardwareAddress(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.ClientHardwareAddressType, packet.ClientHardwareAddress.Type); Assert.Equal(testPacket.ClientHardwareAddressBytes, packet.ClientHardwareAddress.AddressBytes); }
public void DeserializeServerIp(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.ServerIp, packet.ServerIp); }
public void DeserializeIsBroadcast(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.IsBroadcast, packet.IsBroadcast); }
public void DeserializeTransactionId(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.TransactionId, packet.TransactionId); }
public void DeserializeDhcpOperation(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.Operation, packet.Operation); }
public void DeserializeBootFile(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.BootFile, packet.BootFile); }
public void DeserializeGatewayIp(DhcpTestPacket testPacket) { var packet = _serializer.Deserialize(testPacket.Bytes); Assert.Equal(testPacket.GatewayIp, packet.GatewayIp); }