public void GetDeclareLine_Works(string parameterName) { var metadataBoolean = new MetadataOracleBoolean(); var actual = metadataBoolean.GetDeclareLine(parameterName); Assert.Equal($"{parameterName} boolean;", actual); }
private AdditionalInformation ReturnValueAdditionalInformationBoolean <T>(ExecutionInformation info, MetadataOracleBoolean metadata, out OracleParameter parameter) { parameter = FunctionReturnOracleParameter <T>(info, metadata); var name = "ret"; return(new AdditionalInformation { Declare = metadata.GetDeclareLine(name), Output = metadata.OutputString(info.ParameterCounter, name) }); }
public void GetDeclareLine_ThrowsNullArgument() { var metadataBoolean = new MetadataOracleBoolean(); Assert.Throws <ArgumentNullException>("parameterName", () => metadataBoolean.GetDeclareLine(null)); }