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 OutputString_Works(int startNumber, string fieldName) { var metadataBoolean = new MetadataOracleBoolean(); var actual = metadataBoolean.OutputString(startNumber, fieldName); Assert.Equal($@" if({fieldName}) then :{startNumber} := 1; else :{startNumber} := 0; end if;", actual); }
public void OutputString_ThrowsNullArgument() { var metadataBoolean = new MetadataOracleBoolean(); Assert.Throws <ArgumentNullException>("fieldName", () => metadataBoolean.OutputString(0, null)); }