public void Set(Byte[] expected, HardwareType input) { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.HardwareType = input; arpFrame.GetBytes(0, 2).ToArray().Should().Equal(expected); arpFrame.HardwareType.Should().Be(input); }
public void Set(Byte[] expected, ARPOperationCode input) { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.OperationCode = input; arpFrame.GetBytes(6, 2).ToArray().Should().Equal(expected); arpFrame.OperationCode.Should().Be(input); }
public void Set(Byte[] expected, EthernetFrameType input) { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.ProtocolType = input; arpFrame.GetBytes(2, 2).ToArray().Should().Equal(expected); arpFrame.ProtocolType.Should().Be(input); }