public void Test_single_uint32(AbiEncodingStyle encodingStyle) { AbiType type = new AbiUInt(32); AbiSignature signature = new AbiSignature("abc", type); byte[] encoded = _abiEncoder.Encode(encodingStyle, signature, 123U); object[] arguments = _abiEncoder.Decode(encodingStyle, signature, encoded); Assert.AreEqual(new BigInteger(123U), arguments[0]); }
public void Test_uint_exception(int length) { Assert.Throws <ArgumentException>(() => _ = new AbiUInt(length)); }