/// <exception cref="System.Exception"></exception>
 public virtual void TestFloatArrayRoundtrip()
 {
     float[] expected = new float[] { float.MinValue, float.MinValue + 1, 0.0f, float.MaxValue
                                      - 1, float.MaxValue };
     Store(new ArrayHandlerTestCase.FloatArrayHolder(expected));
     Reopen();
     ArrayHandlerTestCase.FloatArrayHolder stored = ((ArrayHandlerTestCase.FloatArrayHolder
                                                      )RetrieveOnlyInstance(typeof(ArrayHandlerTestCase.FloatArrayHolder)));
     ArrayAssert.AreEqual(expected, stored.JaggedFloats());
     ArrayAssert.AreEqual(expected, stored.Floats());
     ArrayAssert.AreEqual(ArrayHandlerTestCase.FloatArrayHolder.Lift(expected), stored
                          .JaggedWrappers());
 }
        /// <exception cref="System.Exception"></exception>
        public virtual void TestArraysHaveNoIdentity()
        {
            float[] expected = new float[] { float.MinValue, float.MinValue + 1, 0.0f, float.MaxValue
                                             - 1, float.MaxValue };
            Store(new ArrayHandlerTestCase.FloatArrayHolder(expected));
            Store(new ArrayHandlerTestCase.FloatArrayHolder(expected));
            Reopen();
            IObjectSet stored = Db().Query(typeof(ArrayHandlerTestCase.FloatArrayHolder));

            ArrayHandlerTestCase.FloatArrayHolder first = ((ArrayHandlerTestCase.FloatArrayHolder
                                                            )stored.Next());
            ArrayHandlerTestCase.FloatArrayHolder second = ((ArrayHandlerTestCase.FloatArrayHolder
                                                             )stored.Next());
            Assert.AreNotSame(first._floats, second._floats);
        }