示例#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);
        }
示例#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);
        }