public void CRUDTest() { var repo = new CollectionRepository <Book> { new Book { Id = 0, Title = "Book first." }, new Book { Id = 1, Title = "Book second." } }; repo.Drop(nameof(Book.Id), 0); repo.Patch(nameof(Book.Id), 1, nameof(Book.Title), "Book modified."); var only = repo.Single(); Assert.AreEqual(1, only.Id); Assert.AreEqual("Book modified.", only.Title); }