public void HexFloat()
        {
            const string value          = "0x71b5b5af";
            string       convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, new Lazy <int>(() => 4));

            Assert.That(convertedValue, Is.EqualTo("1.79956572E+30"));
        }
        public void Octal()
        {
            const string value          = "0771053764433052146430";
            string       convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, DoubleSize);

            Assert.That(convertedValue, Is.EqualTo("1.7995656645221401E+300"));
        }
        public void UpperHex()
        {
            const string value          = "0X7E457F48D8A8CD18";
            string       convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, DoubleSize);

            Assert.That(convertedValue, Is.EqualTo("1.7995656645221401E+300"));
        }
        public void HexDouble()
        {
            const string value          = "0x7e457f48d8a8cd18";
            string       convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, DoubleSize);

            Assert.That(convertedValue, Is.EqualTo("1.7995656645221401E+300"));
        }
        public void NegativeInfinity()
        {
            const string value          = "0xfff0000000000000";
            string       convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, DoubleSize);

            Assert.That(ParseRatio(convertedValue), Is.EqualTo(double.NegativeInfinity));
        }
        public void WrongFormat()
        {
            const string value          = "0xwrong";
            string       convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, DoubleSize);

            Assert.That(convertedValue, Is.EqualTo(value));
        }
        public void Binary()
        {
            const string value =
                "0b111111001000101011111110100100011011000101010001100110100011000";
            string convertedValue = FloatRadixConversionHelper.TryConvertToFloatFromNumberString(
                value, DoubleSize);

            Assert.That(convertedValue, Is.EqualTo("1.7995656645221401E+300"));
        }