示例#1
0
        internal void SetOutputValue_InvalidInput_DoesNotSetValue()
        {
            var metadata = new Mock <MetadataOracleBoolean>(MockBehavior.Strict);

            var param = new ParamBoolean(false, ParameterDirection.InputOutput, metadata.Object);

            param.SetOutputValue(null);

            Assert.Equal(false, param.Value);
            metadata.Verify();
        }
示例#2
0
        internal void SetOutputValue_SetsDecimalValue(Mock <MetadataOracleBoolean> metadata, OracleDecimal value)
        {
            metadata.Setup(m => m.GetBooleanValue(value))
            .Returns(true)
            .Verifiable();

            var param = new ParamBoolean(false, ParameterDirection.InputOutput, metadata.Object);

            param.SetOutputValue(value);

            Assert.Equal(true, param.Value);
            metadata.Verify();
        }