private void CreateTables(MemoryDatabase db) { db.ExecuteCommand(@" CREATE TABLE IF NOT EXISTS Employee ( [Id] INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, [Name] NVARCHAR(64) NOT NULL )"); Assert.IsTrue(db.ExecuteScalar <int>("SELECT count(*) from [Employee]") == 0); }
private void TestCount(MemoryDatabase db, int count) { Assert.IsTrue(db.ExecuteScalar <int>("SELECT count(*) from [Employee]") == count); }