public void RepositoryStorageChanged() { // arrange var repo = _rm.GetRepositories().First(); var previouspath = repo.StoragePath; var newstoragepath = @"I:\ВУЗ\Диплом\NewStorage"; // act _rm.ChangeRepositoryStorage(repo, newstoragepath); // assert Assert.AreEqual(newstoragepath, _rm.GetRepositories().First().StoragePath); _rm.ChangeRepositoryStorage(_rm.GetRepositories().First(), previouspath); }