public void Get(Byte[] input, ARPOperationCode expected) { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.SetBytes(6, 2, input); arpFrame.OperationCode.Should().Be(expected); }
public void Get() { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.SetBytes(24, 4, new Byte[] { 0xC0, 0xA8, 0x01, 0x01 }); arpFrame.TargetIPAddress.ToString().Should().Be("192.168.1.1"); }
public void Get() { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.SetBytes(18, 6, new Byte[] { 0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC }); arpFrame.TargetMACAddress.ToString().Should().Be("12:34:56:78:9A:BC"); }
public void Get(Byte[] input, HardwareType expected) { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.SetBytes(0, 2, input); arpFrame.HardwareType.Should().Be(expected); }
public void Get(Byte[] input, EthernetFrameType expected) { var arpFrame = new ARPFrame { Bytes = new Byte[28] }; arpFrame.SetBytes(2, 2, input); arpFrame.ProtocolType.Should().Be(expected); }