public void Test_OpenReaderWorks() { var mockInstrumenter = new Mock <IInstrumentationHandler>(); var connection = new SqliteConnection("Data Source=:memory:"); connection.Open(); var instrumentedConnection = new InstrumentedDbConnection(connection, mockInstrumenter.Object); // Force an error and confirm the instrumenter picks it up instrumentedConnection.Execute("CREATE TABLE T (Id int null)"); instrumentedConnection.Execute("INSERT INTO T (Id) VALUES (1), (2)"); var cmd = instrumentedConnection.CreateCommand(); cmd.CommandText = "SELECT * FROM T"; using var reader = cmd.ExecuteReader(); reader.NextResult(); reader.NextResult(); }