public void TestGetUnexistingId() { SQLiteStorage storage = new SQLiteStorage(inMemory: true); storage.AddModel <User>(); Utils.IsThrows(() => User.GetById(storage, 10), "Getting from empty storage must throw"); User user = new User(storage); user.Save(); Utils.IsNotThrows(() => User.GetById(storage, 0), "Getting valid id must not throw"); user.Remove(); Utils.IsThrows(() => User.GetById(storage, 0), "Getting removed id must throw"); }