You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Dapper.Tests/MultiMapTests.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,13 @@ public void TestMultiMapperIsNotConfusedWithUnorderedCols()
194
194
Assert.Equal("a",result.Item2.Name);
195
195
}
196
196
197
+
[Fact]
198
+
publicvoidTestMultiMapperSplitOnError()
199
+
{
200
+
varex=Assert.Throws<ArgumentException>(()=>connection.Query<Foo1,Bar1,Tuple<Foo1,Bar1>>("select 1 as Id, 2 as BarId",Tuple.Create,splitOn:"DoesntExist").First());
201
+
Assert.StartsWith("Multi-map error: splitOn column 'DoesntExist' was not found - please ensure your splitOn parameter is set and in the correct order",ex.Message);
0 commit comments