SEBWIN-183: Added missing test case for shutdown controller.

This commit is contained in:
dbuechel 2017-10-11 08:17:53 +02:00
parent 1cb388b754
commit 2e28c01fdb

View file

@ -113,5 +113,12 @@ namespace SafeExamBrowser.Core.UnitTests.Behaviour
{
sut.FinalizeApplication(new Queue<IOperation>());
}
[TestMethod]
public void MustNotFailInCaseOfUnexpectedError()
{
uiFactoryMock.Setup(l => l.CreateSplashScreen(It.IsAny<ISettings>(), It.IsAny<IText>())).Throws(new Exception());
sut.FinalizeApplication(new Queue<IOperation>());
}
}
}