public void TestCompression() { var a = DataSourceFactory.Create(new float[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, new int[] { 2, 2, 3 }); var bytes = a.Serialize(true); var b = DataSourceFactory.Load <float>(bytes, true); Assert.AreEqual(a.Shape, b.Shape); CollectionAssert.AreEqual(a.TypedData, b.TypedData); }