Skip to content

Commit

Permalink
failing test for #563
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Sep 8, 2016
1 parent c899113 commit d506c17
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dapper.Tests/Tests.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,19 @@ public async Task Issue1281_DataReaderOutOfOrderAsync()
reader.Read().IsFalse();
}
}

[Fact]
public async Task Issue563_QueryAsyncShouldThrowException()
{
try
{
var data = (await connection.QueryAsync<int>("select 1 union all select 2")).ToList();
Assert.Fail();
}catch(SqlException ex)
{
Console.WriteLine(ex.Message);
}
}
}
}
#endif

0 comments on commit d506c17

Please sign in to comment.