Skip to content

Instantly share code, notes, and snippets.

@johnnonolan
Created April 2, 2011 22:16
Show Gist options
  • Select an option

  • Save johnnonolan/899954 to your computer and use it in GitHub Desktop.

Select an option

Save johnnonolan/899954 to your computer and use it in GitHub Desktop.
SQL.Data is coming
[Subject("SELECT Executing")]
public class When_executing_select_from_users
{
Establish that = () => {
q.ConnectionString = connectionString;
};
Because of = () => result = (q.SELECT * q.FROM.Users).GO(); //Users is dynamic
It should_return_select_star_from_users = () => result.Count.ShouldEqual(0);
static IList<DataRecord> result;
static string connectionString = @"Data Source = |DataDirectory|\TestDb.sdf";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment