public void MustCloseWindowWhenTerminating() { var window = new Mock <IWindow>(); var sut = new LogNotification(logger.Object, text.Object, uiFactory.Object); uiFactory.Setup(u => u.CreateLogWindow(It.IsAny <ILogger>())).Returns(window.Object); sut.Activate(); sut.Terminate(); window.Verify(w => w.Close()); }
public void MustNotFailToTerminateIfNotStarted() { var sut = new LogNotification(logger.Object, text.Object, uiFactory.Object); sut.Terminate(); }