public void TestFloatingPoints()
        {
            var r = FloatingPoints.FromFile(SourceFile("floating_points.bin"));

            Assert.AreEqual(r.SingleValue, ((float)(0.5)), 1e-6);
            Assert.AreEqual(r.SingleValueBe, ((float)(0.5)), 1e-6);
            Assert.AreEqual(r.DoubleValue, 0.25, 1e-6);
            Assert.AreEqual(r.DoubleValueBe, 0.25, 1e-6);
            Assert.AreEqual(r.ApproximateValue, 1.2345, 1e-6);
            Assert.AreEqual(r.SingleValuePlusInt, 1.5, 1e-6);
            Assert.AreEqual(r.SingleValuePlusFloat, 1.0, 1e-6);
            Assert.AreEqual(r.DoubleValuePlusFloat, 0.3, 1e-6);
        }
        public void TestFloatingPoints()
        {
            var fp = FloatingPoints.FromFile(SourceFile("floating_points.bin"));

            const double delta = 1E-6;

            Assert.AreEqual(0.5f, fp.SingleValue);
            Assert.AreEqual(0.5f, fp.SingleValueBe);

            Assert.AreEqual(0.25d, fp.DoubleValue);
            Assert.AreEqual(0.25d, fp.DoubleValueBe);

            Assert.AreEqual(1.2345d, fp.ApproximateValue, delta);

            Assert.AreEqual(1.5f, fp.SingleValuePlusInt, delta);
            Assert.AreEqual(1.0d, fp.SingleValuePlusFloat, delta);
            Assert.AreEqual(0.3d, fp.DoubleValuePlusFloat, delta);
        }