public static void Combination() { foreach (var type in Enum <MessageType> .Members) { foreach (var control in Enum <FlowControl> .Members) { var octet = new ControlOctet(type.Value, control.Value); Equal(type.Value, octet.Type); Equal(control.Value, octet.Control); } } }
public static void Combination() { foreach (MessageType type in Enum.GetValues(typeof(MessageType))) { foreach (FlowControl control in Enum.GetValues(typeof(FlowControl))) { var octet = new ControlOctet(type, control); Equal(type, octet.Type); Equal(control, octet.Control); } } }
internal PacketHeaders(ref ReadOnlyMemory <byte> header) { control = new ControlOctet(ref header); }
internal PacketHeaders(MessageType type, FlowControl control) { this.control = new ControlOctet(type, control); }