public void ParseHeaderByteForFirstConsFrames() { // 1110 0000 >> 0000 0111 & // 0 000? ???? => 0 => SINGLE // 1 001? ???? => 1 => FIRST // 2 010? ???? => 2 => CONS // 3 011? ???? => 3 => CONTROL // 4 100? ???? => 4 => INFO // IsSubframeCount ==> ???? ???1 // SubFrameCountOrIndex ==> ???? ?11? ==> Used in Single Frame // HasMessageTypeByte_b4 ==> ???1 ???? // Frame Type ==> 111? ???? // ConsFrame: // IsSubFrameCount ==> 1??? ???? // SubFrameCountOrIndex ==> ?11? ???? // HasMessageTypeByte_b4 ==> ???? 1??? // FrameCountOrNuber ==> byte[1] //Arrange var frameFactory = new FrameFactory(); byte headerByte = 0x30; var frameType = frameFactory.getFrameTypeFromHeaderByte(headerByte); Assert.AreEqual(FrameType.FIRST, frameType); }