public void Err13616_DataNull() { TestHelpers.CatchUnexpected(() => { IDescParser parser = new DescParser_PresentationFormat(); parser.Parse(null); this.logReader.Validate(13616, "BLEParserBase", "CopyToRawData", "Raw byte[] is null"); }); }
public void Err13618_DataZeroLength() { TestHelpers.CatchUnexpected(() => { IDescParser parser = new DescParser_PresentationFormat(); byte[] data = Array.Empty <byte>(); parser.Parse(data); this.logReader.Validate(13618, "BLEParserBase", "CopyToRawData", "byte[] is zero length"); }); }
public void Err13615_DataTooShort() { TestHelpers.CatchUnexpected(() => { IDescParser parser = new DescParser_PresentationFormat(); byte[] data = new byte[1]; parser.Parse(data); this.logReader.Validate(13615, "BLEParserBase", "CopyToRawData", "Data length:1 smaller than requested:7 Data '0x00'"); }); }