Skip to content

Commit

Permalink
extra test for NET35 / multi
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Oct 26, 2012
1 parent e8ead8d commit 8b405c7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DapperTests NET35/Tests.cs
Expand Up @@ -2,6 +2,7 @@
using System.Linq;
using Dapper;
using SqlMapper;
using System.Data;

namespace DapperTests_NET35
{
Expand Down Expand Up @@ -40,5 +41,18 @@ class BasicType
.IsEqualTo(4);
}

public void TestMultiple()
{
using (var grid = connection.QueryMultiple("select 1; select 2; select 3", null, CommandType.Text))
{
int i = grid.Read<int>().Single();
int j = grid.Read<int>().Single();
int k = grid.Read<int>().Single();
i.Equals(1);
j.Equals(2);
k.Equals(3);
}
}

}
}

0 comments on commit 8b405c7

Please sign in to comment.