public async Task TwitterConfigCanBeStored() { // Arrange using (var con = OpenConnection()) using (var cache = new SqliteCache(con)) { var cfg = new LinqToTwitter.Configuration { PhotoSizeLimit = 123 }; // Act await cache.SaveTwitterConfig(cfg); // Assert using (var cmd = con.CreateCommand()) { cmd.CommandText = "SELECT Data FROM TwitterConfig"; var fromDb = JsonConvert.DeserializeObject <LinqToTwitter.Configuration>((string)cmd.ExecuteScalar()); Assert.AreEqual(cfg.PhotoSizeLimit, fromDb.PhotoSizeLimit); } } }