Skip to content

Commit

Permalink
Added an integration tests for Type Result with more columns. #538
Browse files Browse the repository at this point in the history
  • Loading branch information
mikependon committed Sep 5, 2020
1 parent e56040d commit fd571d8
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,18 @@ public void TestSqlConnectionExecuteQueryTypeResultForNullableDateTimeWithNullRe

#endregion


[TestMethod, ExpectedException(typeof(InvalidOperationException))]
public void ThrowExceptionOnSqlConnectionExecuteQueryTypeResultWithMoreColumns()
{
using (var connection = new SqlConnection(Database.ConnectionStringForRepoDb))
{
// Act
connection.ExecuteQuery<int>("SELECT 1 AS Column1, 2 AS Column2 UNION ALL SELECT 3, 4;").AsList();
}
}


#endregion

#region NonMapped
Expand Down

0 comments on commit fd571d8

Please sign in to comment.