private void _ChangeSlideBeingDisplayed([NotNull] Slide nextSlide) { var oldSlide = _machine.CurrentSlide; _machine.ShowSlide(nextSlide); _machine.ControlMaker.Deflate(oldSlide); }
public async Task ShowingASlide_Should_SendPropertyChangeNotifications() { _testSubject.CurrentPageType = typeof(object); _testSubject.MonitorEvents(); _testSubject.ShowSlide(new Slide(new _ImageLoaderHardCoded())); _testSubject.ShouldRaisePropertyChangeFor(m => m.CurrentPageType); _testSubject.ShouldRaisePropertyChangeFor(m => m.CurrentSlide); _testSubject.CurrentPageType.Should() .Be(typeof(PresentationPlayingPage)); }