VB Code casts differently in nunit than VS 2005

"Jon Swan" <[email protected]> Fri, 21 Nov 2008 12:07:34 -0600
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
--===============0722446476568015594==
Content-Type: multipart/alternative; 
	boundary="----=_Part_14589_25104738.1227290854455"

------=_Part_14589_25104738.1227290854455
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

System specs of interest: Win XP, IE 7, nunit 2.4.8 (.net 2.0), VS 2005

I am using VB .net to access a frame collection in a browser object.  When I
run the program as a stand-alone VB app, I can view the frame collection and
all of the objects within it.  When, I attach a test that uses the same code
to nunit, I get a casting exception when trying to access the same frames
collection.

The objects are SHDocVw.InternetExplorer (ie) and mshtml.HTMLDocument (doc)

doc = ie.document

accessing doc.frames throws a casting exception, but only when running the
test through nunit.

Is it possible that the run-time for nunit is using a different rule set
than VS does?

------=_Part_14589_25104738.1227290854455
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>System specs of interest: Win XP, IE 7, nunit 2.4.8 (.net 2.0), VS 2005</div>
<div>&nbsp;</div>
<div>I am using VB .net to access a frame collection in a browser object.&nbsp; When I run the program as a stand-alone VB app, I can view the frame collection and all of the objects within it.&nbsp; When, I attach a test that uses the same code to nunit, I get a casting exception when trying to access the same frames collection.&nbsp; </div>

<div>&nbsp;</div>
<div>The objects are SHDocVw.InternetExplorer (ie)&nbsp;and&nbsp;mshtml.HTMLDocument (doc)</div>
<div>&nbsp;</div>
<div>doc = ie.document</div>
<div>&nbsp;</div>
<div>accessing doc.frames throws a casting exception, but only when running the test through nunit.&nbsp; </div>
<div>&nbsp;</div>
<div>Is it possible that the run-time for nunit is using a different rule set than VS does?&nbsp; </div>

------=_Part_14589_25104738.1227290854455--


--===============0722446476568015594==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============0722446476568015594==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users

--===============0722446476568015594==--