public static IEnumerable <object[]> GetNumberData()
        {
            foreach (var x in SignedIntHelpers.FailReads <short>(-32769))
            {
                ;                                                          // Min - 1
            }
            foreach (var x in SignedIntHelpers.Reads <short>(-32768, -32768))
            {
                yield return(x);                                                             // Min
            }
            foreach (var x in SignedIntHelpers.Reads <short>(0, 0))
            {
                yield return(x);
            }
            foreach (var x in SignedIntHelpers.Reads <short>(32767, 32767))
            {
                yield return(x);                                                           // Max
            }
            foreach (var x in SignedIntHelpers.FailReads <short>(32768))
            {
                ;                                                         // Max + 1
            }
            yield return(Write(EtfTokenType.Integer, new byte[] { 0xFF, 0xFF, 0x80, 0x00 }, -32768));

            yield return(Write(EtfTokenType.SmallInteger, new byte[] { 0x00 }, 0));

            yield return(Write(EtfTokenType.Integer, new byte[] { 0x00, 0x00, 0x7F, 0xFF }, 32767));
        }
        public static IEnumerable <object[]> GetNumberData()
        {
            yield return(FailRead(EtfTokenType.SmallBig, new byte[] { 0x08, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 }));                   // Min - 1

            yield return(FailRead(EtfTokenType.LargeBig, new byte[] { 0x00, 0x00, 0x00, 0x08, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 })); // Min - 1

            foreach (var x in SignedIntHelpers.Reads <long>(-9223372036854775808, -9223372036854775808))
            {
                yield return(x);                                                                                        // Min
            }
            foreach (var x in SignedIntHelpers.Reads <long>(0, 0))
            {
                yield return(x);
            }
            foreach (var x in SignedIntHelpers.Reads <long>(9223372036854775807, 9223372036854775807))
            {
                yield return(x);                                                                                                                        // Max
            }
            yield return(FailRead(EtfTokenType.LargeBig, new byte[] { 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 }));                   // Max + 1

            yield return(FailRead(EtfTokenType.LargeBig, new byte[] { 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 })); // Max + 1

            yield return(Write(EtfTokenType.SmallBig, new byte[] { 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80 }, -9223372036854775808));

            yield return(Write(EtfTokenType.SmallInteger, new byte[] { 0x00 }, 0));

            yield return(Write(EtfTokenType.SmallBig, new byte[] { 0x08, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F }, 9223372036854775807));
        }