예제 #1
0
        public void ShouldConvertUncompressed()
        {
            var unBytes     = DataSetConverter.ToBytes(DataSetTestContent.DS, false);
            var fromUnBytes = DataSetConverter.FromBytes(unBytes, false);

            Assert.IsTrue(IsSetSame(DataSetTestContent.DS, fromUnBytes));
        }
예제 #2
0
        public void ShouldConvertCompressed()
        {
            var bytes     = DataSetConverter.ToBytes(DataSetTestContent.DS);
            var fromBytes = DataSetConverter.FromBytes(bytes);

            Assert.IsTrue(IsSetSame(DataSetTestContent.DS, fromBytes));
            Assert.IsFalse(IsSetSame(DataSetTestContent.FalseDS, fromBytes));
        }