public void GetCategory() { Repo repo = new Repo("data.xml", "cat.xml", tracked); var im = repo.Images[0]; repo.AddCategoryToPicture(im, "ТЕСТ"); repo.Save(); var cat = repo.Categories.FirstOrDefault(n => n.Name == "ТЕСТ"); Assert.IsNotNull(cat); }
public void GetCategory() { Repo repo = new Repo("data.xml", "cat.xml", tracked); var im = repo.Images[0]; repo.AddCategoryToPicture(im, "ТЕСТ"); repo.Save(); var cat = repo.Categories.FirstOrDefault(n => n.Name == "ТЕСТ"); Assert.IsNotNull(cat); }