public void Update_package_file_with_new_name() { // Arrange var validator = new PackageValidator(); var package = CreateTestData(); // Act validator.UpdatePackage(package, new KeyValuePair <string, string>("F00000119", "Happy")); // Assert var flatList = validator.ConvertToRepositoryObject(package); flatList.First(f => f.RepositoryId == "F00000119").Name.Should().Be("Happy"); }