public void Get(Byte input, PPPoEFrameCode expected) { var pppoeFrame = new PPPoEFrame { Bytes = new Byte[14] }; pppoeFrame.SetByte(1, input); pppoeFrame.Code.Should().Be(expected); }
public void Set(Byte expected, PPPoEFrameCode input) { var pppoeFrame = new PPPoEFrame { Bytes = new Byte[14] }; pppoeFrame.Code = input; pppoeFrame.GetByte(1).Should().Be(expected); pppoeFrame.Code.Should().Be(input); }