public void LocalCurrency_ExpectDeserializeInvalidStringToDecimal()
        {
            // arrange
            ScalarType scalar = new LocalCurrencyType();

            // act
            var success = scalar.TryDeserialize("abc", out object?_);

            // assert
            Assert.False(success);
        }
        public void LocalCurrency_ExpectDeserializeNullToNull()
        {
            // arrange
            ScalarType scalar = new LocalCurrencyType();

            // act
            var success = scalar.TryDeserialize(null, out object?deserialized);

            // assert
            Assert.True(success);
            Assert.Null(deserialized);
        }
        public void LocalCurrency_ExpectDeserializeNullableDecimalToDecimal()
        {
            // arrange
            ScalarType scalar       = new LocalCurrencyType();
            decimal?   runtimeValue = null;

            // act
            var success = scalar.TryDeserialize(runtimeValue, out object?deserialized);

            // assert
            Assert.True(success);
            Assert.Null(deserialized);
        }