public void DeserializeEthernetEncapsulationOption(string hexBytes, EthernetEncapsulation expectedEncapsulation) { var optionsBytes = hexBytes.AsHexBytes(); var reader = new DhcpBinaryReader(optionsBytes); var options = _optionsSerializer.DeserializeOptions(reader); var option = options.OfType <DhcpEthernetEncapsulationOption>().Single(); Assert.Equal(expectedEncapsulation, option.EthernetEncapsulation); }
public DhcpEthernetEncapsulationOption(EthernetEncapsulation ethernetEncapsulation) { EthernetEncapsulation = ethernetEncapsulation; }