private void ConvertThroughProto(ContractId source) { Com.DigitalAsset.Ledger.Api.V1.Value protoValue = source.ToProto(); var maybe = Value.FromProto(protoValue).AsContractId(); Assert.AreEqual(typeof(Some <ContractId>), maybe.GetType()); Assert.IsTrue(source == (Some <ContractId>)maybe); }
private void ConvertThroughProto(ContractId source) { Com.Daml.Ledger.Api.V1.Value protoValue = source.ToProto(); var maybe = Value.FromProto(protoValue).AsContractId(); maybe.Should().BeOfType <Some <ContractId> >(); Assert.True(source == (Some <ContractId>)maybe); }