public void Update() { int test = 0; List <ProductsProps> temp = (List <ProductsProps>)db.RetrieveAll(test.GetType()); int i = 0; ProductsProps p; bool found = false; for (; i < temp.Count(); i++) { if (temp[i].code == "TEST") { found = true; break; } } if (found) { p = (ProductsProps)db.Retrieve(temp[i].ID); p.code = "NOTTEST"; db.Update(p); ProductsProps x = (ProductsProps)db.Retrieve(temp[i].ID); } else { Assert.Fail(); } // Assert.True(x.code == p.code); // x.code = "TEST"; // db.Update(x); }