-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: ShanNetSE
Message 3 in Discussion
hi, We are developing some ASP.NET web applications and it contains one
BusinessRuleClass.cs file
and need to test methods in BusinessRuleClass.cs in this development effort.
I am beginning to write unit tests using Team Test so that I can test the
methods with different flavors of datasets.
One of the problems I have hit into is that the source code has logic and UI
development tied together. Some of the functions expect a value for variables
such as Page, Session and Control IDs. When I create regular unit tests these
variables have null values because of which the functions fail even though they
may return expected values within the ASP.NET environment. So I am trying to
create a test website that has these controls and test the functions by hitting
the controls on that page. I am using the [HostType("ASP.NET")] and
[UrlToTest("http://localhost/TestSite")] attributes.
Here are my questions for this scenario:
1) I am unable to debug into the test by rightclicking on the TestManager and
selecting 'Debug Checked Tests' - my breakpoint gets bypassed with this message
- 'The breakpoint will not be currently hit. No Symbols have been loaded for
this document'. How do I enable debugging for this type of test?
Also, is there any alternate way to test this project? Thanks in Advanc
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]