private static IEnumerable <TestCaseData> QueryProcedureFormatUnlessCases() { yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text"), new[] { new SqlQueryCommand("text", new DbParameter[0], CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text", parameters: null), new[] { new SqlQueryCommand("text", new DbParameter[0], CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text", new IDbParameterValue[0]), new[] { new SqlQueryCommand("text", new DbParameter[0], CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text", new SqlParameterValueStub()), new[] { new SqlQueryCommand("text", new[] { new SqlParameterValueStub().ToDbParameter("@P0") }, CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text {0}", new SqlParameterValueStub()), new[] { new SqlQueryCommand("text @P0", new[] { new SqlParameterValueStub().ToDbParameter("@P0") }, CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text", new SqlParameterValueStub(), new SqlParameterValueStub()), new[] { new SqlQueryCommand("text", new[] { new SqlParameterValueStub().ToDbParameter("@P0"), new SqlParameterValueStub().ToDbParameter("@P1") }, CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(false, "text {0} {1}", new SqlParameterValueStub(), new SqlParameterValueStub()), new[] { new SqlQueryCommand("text @P0 @P1", new[] { new SqlParameterValueStub().ToDbParameter("@P0"), new SqlParameterValueStub().ToDbParameter("@P1") }, CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text"), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text", parameters: null), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text", new IDbParameterValue[0]), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text", new SqlParameterValueStub()), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text {0}", new SqlParameterValueStub()), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text", new SqlParameterValueStub(), new SqlParameterValueStub()), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureFormatUnless(true, "text {0} {1}", new SqlParameterValueStub(), new SqlParameterValueStub()), new SqlQueryCommand[0])); }