public void count() { Assert.Equal(20, _db.Count <Post>()); Assert.Equal(0, _db.Count <Post>(p => p.Id > 30)); Assert.Equal(20, _db.Count <Post>(p => p.TopicId == null)); }