public void ShouldConvertUncompressed() { var unBytes = DataSetConverter.ToBytes(DataSetTestContent.DS, false); var fromUnBytes = DataSetConverter.FromBytes(unBytes, false); Assert.IsTrue(IsSetSame(DataSetTestContent.DS, fromUnBytes)); }
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)); }
public void GasCostUncompressedShouldMatch() { var bytes = DataSetConverter.ToBytes(DataSetTestContent.DS, false); Assert.AreEqual(DataSetTestContent.UncompressedGas, EthereumConnection.EstimateGasCost(bytes)); }