public void Serialize_ShouldSerialize_ToJson() { // Arrange var value = new SampleContract { Number = 34, Name = "ZgD" }; var serializer = new JsonSerializer <SampleContract>(); var writer = new StringWriter(); // Act serializer.Serialize(value, writer); // Assert var result = writer.GetStringBuilder().ToString(); result.Should().Be("{\"Number\":34,\"Name\":\"ZgD\"}"); }
private Task <SampleContract> GetSampleContract() => SampleContract.DeployAsync(Web3, X, Y);
private Task <SampleContract> GetSampleContractAsync(HexBigInteger gas = null) => SampleContract.DeployAsync(_web3, X, Y, gas);