Esempio n. 1
0
        private void ConvertThroughProto(Bool source)
        {
            Com.DigitalAsset.Ledger.Api.V1.Value protoValue = source.ToProto();
            var maybe = Value.FromProto(protoValue).AsBool();

            Assert.AreEqual(typeof(Some <Bool>), maybe.GetType());
            Assert.IsTrue(source == (Some <Bool>)maybe);
        }
Esempio n. 2
0
        private void ConvertThroughProto(Bool source)
        {
            Com.Daml.Ledger.Api.V1.Value protoValue = source.ToProto();
            var maybe = Value.FromProto(protoValue).AsBool();

            maybe.Should().BeOfType <Some <Bool> >();
            Assert.True(source == (Some <Bool>)maybe);
        }