public void TestRepair()
{
var target = new FeedTarget(FeedTest.Test1Uri, new Feed {Name = "Test"});
var appEntry = _integrationManager.AddApp(target);
using (var applyFlag = new TemporaryFlagFile("0install-unit-tests"))
{
// Inject access point into AppEntry (without running integration)
appEntry.AccessPoints = new AccessPointList {Entries = {new MockAccessPoint {ApplyFlagPath = applyFlag}}};
_integrationManager.Repair(uri => new Feed());
applyFlag.Set.Should().BeTrue(because: "Access points should be reapplied");
}
}
}