Update provider now closes all orphaned IISExpress instances before update.

This commit is contained in:
kay.one 2011-11-20 17:13:58 -08:00
commit d73853f08b
8 changed files with 49 additions and 32 deletions

View file

@ -117,6 +117,15 @@ namespace NzbDrone.Update.Test
Mocker.GetMock<ProcessProvider>().Verify(c => c.Kill(It.IsAny<int>()), Times.Never());
}
[Test]
public void should_stop_orphan_iisexpress_instances()
{
Mocker.Resolve<UpdateProvider>().Start(TARGET_FOLDER);
//Assert
Mocker.GetMock<IISProvider>().Verify(c => c.StopServer(), Times.Once());
}
[Test]
public void should_create_backup_of_current_installation()
{