public void StopFiresChangeEvent() { var manager = new PlaybackManager(services); var environment = new PlaybackEnvironment(new[] { new PlaybackEnvironmentElement(new Data.EncounterStateElement { ElementId = "elementId1", StartsWithState = true }, new Data.EnvironmentElement { Id = "elementId1", Name = "Element" }) }); manager.PlayEnvironment(environment); bool envChanged = false; manager.EnvironmentChanged += (o, e) => { Assert.That(e.PreviousEnvironment, Is.SameAs(environment)); Assert.That(e.NewEnvironment, Is.Null); envChanged = true; }; manager.Stop(); Assert.That(envChanged, Is.True); }