public void Can_serialize() { ParityTraceResult result = new ParityTraceResult(); result.GasUsed = 12345; result.Output = new byte[] { 6, 7, 8, 9, 0 }; TestToJson(result, "{\"gasUsed\":\"0x3039\",\"output\":\"0x0607080900\"}"); }
public void Can_serialize_nulls() { ParityTraceResult result = new ParityTraceResult(); TestToJson(result, "{\"gasUsed\":\"0x0\",\"output\":null}"); }