/// <summary>
 /// Raised when FSX notifies us of an event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void SimConnect_EventObserved(object sender, SimConnectEventObservedEventArgs args)
 {
     if(args.EventId == (uint)FlightSimulatorXEventId.SlewToggle) OnSlewToggled(EventArgs.Empty);
 }
        public void FlightSimulatorX_SlewToggled_Raised_When_User_Toggles_Slew_Manually()
        {
            _Fsx.SlewToggled += _SlewToggledEvent.Handler;
            _Fsx.Connect(new IntPtr(10));

            var args = new SimConnectEventObservedEventArgs() { EventId = (uint)FlightSimulatorXEventId.SlewToggle, };
            _SimConnect.Raise(s => s.EventObserved += null, args);

            Assert.AreEqual(1, _SlewToggledEvent.CallCount);
            Assert.AreSame(_Fsx, _SlewToggledEvent.Sender);
            Assert.IsNotNull(_SlewToggledEvent.Args);
        }