We are using NUnit 2.2.0:
I am trying to test a form with an ActiveX control on it.
I use the MS Browser control.
When running a test which creates an instance of this
form I get an exception from the NUnit GUI with the
following message:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Reflection.TargetInvocationException: Unable to
get the window handle for the 'AxWebBrowser' control.
Windowless ActiveX controls are not supported. --->
System.NullReferenceException: Object reference not
set to an instance of an object.
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at
System.Windows.Forms.AxHost.MakeVisibleWithShow()
--- End of inner exception stack trace ---
at
System.Windows.Forms.AxHost.MakeVisibleWithShow()
at
System.Windows.Forms.AxHost.OnContainerVisibleChange
d(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnVisibleChanged
(EventArgs e)
at
System.Windows.Forms.ScrollableControl.OnVisibleChang
ed(EventArgs e)
at System.Windows.Forms.Control.WmShowWindow
(Message& m)
at System.Windows.Forms.Control.WndProc(Message&
m)
at System.Windows.Forms.ScrollableControl.WndProc
(Message& m)
at System.Windows.Forms.ContainerControl.WndProc
(Message& m)
at System.Windows.Forms.UserControl.WndProc
(Message& m)
at
System.Windows.Forms.ControlNativeWindow.OnMessage
(Message& m)
at
System.Windows.Forms.ControlNativeWindow.WndProc
(Message& m)
at System.Windows.Forms.NativeWindow.Callback
(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Regards,
Alex