public void TestRollback() { InsertValueInNewDb(false); var adapter = new MySQLCommandChannelFactory().Open(Credentials); Assert.AreEqual((long)0, adapter.FetchValue("SELECT COUNT(*) FROM test")); }
public void TestCommit() { InsertValueInNewDb(true); var adapter = new MySQLCommandChannelFactory().Open(Credentials); Assert.AreEqual("committed", adapter.FetchValue("SELECT reference FROM test LIMIT 1")); }