public static void ReadHalf_SingleValue_HappyPath(float expectedResult, string hexEncoding) { byte[] encoding = hexEncoding.HexToByteArray(); var reader = new CborReader(encoding); Assert.Equal(CborReaderState.HalfPrecisionFloat, reader.PeekState()); Half actualResult = reader.ReadHalf(); AssertHelpers.Equal((Half)expectedResult, actualResult); Assert.Equal(CborReaderState.Finished, reader.PeekState()); }