Author Topic: Unexpected behavior at the IDE  (Read 1150 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Unexpected behavior at the IDE
« on: October 09, 2012, 05:26:42 AM »
Hi all,
MS Visual Studio 2010 SP1.

I have wrote some class. Then I have wrote unit tests for it. Please, look at the my first screen.
If I run unit test via "1" button, then  a code works as I have expect, but if I run unit test via "2" button, then I have unexpected behavior. Please, look at the my second screen.
When the condition
Code - C#: [Select]
  1. if (null == acadRegistryKey)
is true, I press the F10 button and go to row number 175. I press F10 button again, and... I go to row number 177. Why it happens??? After row number 175 I must have return from method, because exception must occur.

Best Regards,
Andrey
« Last Edit: October 09, 2012, 05:33:48 AM by Andrey »