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 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); }