public void Set(Byte expected, ICMPv6Type input) { var icmpv6Packet = new ICMPv6Packet { Bytes = new Byte[32] }; icmpv6Packet.Type = input; icmpv6Packet.GetByte(0).Should().Be(expected); icmpv6Packet.Type.Should().Be(input); }
public void Set() { var icmpv6Packet = new ICMPv6Packet { Bytes = new Byte[32] }; icmpv6Packet.Code = 1; icmpv6Packet.GetByte(1).Should().Be(1); icmpv6Packet.Code.Should().Be(1); }