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