private static IEnumerable <TestCaseData> QueryProcedureUnlessCases() { yield return(new TestCaseData( TSql.QueryProcedureUnless(false, "text"), new[] { new SqlQueryCommand("text", new DbParameter[0], CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureUnless(false, "text", parameters: null), new[] { new SqlQueryCommand("text", new DbParameter[0], CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureUnless(false, "text", new { }), new[] { new SqlQueryCommand("text", new DbParameter[0], CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureUnless(false, "text", new { Parameter = new SqlParameterValueStub() }), new[] { new SqlQueryCommand("text", new[] { new SqlParameterValueStub().ToDbParameter("@Parameter") }, CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureUnless(false, "text", new { Parameter1 = new SqlParameterValueStub(), Parameter2 = new SqlParameterValueStub() }), new[] { new SqlQueryCommand("text", new[] { new SqlParameterValueStub().ToDbParameter("@Parameter1"), new SqlParameterValueStub().ToDbParameter("@Parameter2") }, CommandType.StoredProcedure) })); yield return(new TestCaseData( TSql.QueryProcedureUnless(true, "text"), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureUnless(true, "text", parameters: null), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureUnless(true, "text", new { }), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureUnless(true, "text", new { Parameter = new SqlParameterValueStub() }), new SqlQueryCommand[0])); yield return(new TestCaseData( TSql.QueryProcedureUnless(true, "text", new { Parameter1 = new SqlParameterValueStub(), Parameter2 = new SqlParameterValueStub() }), new SqlQueryCommand[0])); }