NUnitAsp Testing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sonali24
    New Member
    • Oct 2008
    • 3

    #1

    NUnitAsp Testing

    Could you plz help me with setting a boolean value for a RadioButtontest er.Checked,
    E.g. objRadioButtonT etser.Checked=T rue.
    Though I am not getting an error with this statement in my code, the value is not set..
    When I check It with AssertEquals(Tr ue,objRadioButt onTetser.Checke d)
    the test case fails
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    MyRadio.Checked = True should set the value to true.

    If the value is not being set it could be for any number of reasons.

    Is that line of code ever executing or being called?
    Is there any logic that is causing the value to be set back to False in a later line of execution?

    You will probably have to step through the code execution to find out the answer or post a better example of the problem.

    Comment

    Working...