internal async Task SetOutputValueAsync_InvalidInput_DoesNotSetValue() { var metadata = new Mock <MetadataOracleBoolean>(MockBehavior.Strict); var param = new ParamBoolean(false, ParameterDirection.InputOutput, metadata.Object); await param.SetOutputValueAsync(null); Assert.Equal(false, param.Value); metadata.Verify(); }
internal async Task SetOutputValueAsync_SetsDecimalValue(Mock <MetadataOracleBoolean> metadata, OracleDecimal value) { metadata.Setup(m => m.GetBooleanValue(value)) .Returns(true) .Verifiable(); var param = new ParamBoolean(false, ParameterDirection.InputOutput, metadata.Object); await param.SetOutputValueAsync(value); Assert.Equal(true, param.Value); metadata.Verify(); }