예제 #1
0
        private void ConvertThroughProto(DamlList source)
        {
            Com.Daml.Ledger.Api.V1.Value protoValue = source.ToProto();
            var maybe = Value.FromProto(protoValue).AsList();

            maybe.Should().BeOfType <Some <DamlList> >();
            Assert.True(source == (Some <DamlList>)maybe);
        }
예제 #2
0
        private void ConvertThroughProto(DamlList source)
        {
            Com.DigitalAsset.Ledger.Api.V1.Value protoValue = source.ToProto();
            var maybe = Value.FromProto(protoValue).AsList();

            Assert.AreEqual(typeof(Some <DamlList>), maybe.GetType());
            Assert.IsTrue(source == (Some <DamlList>)maybe);
        }