in

Platinum Bay

Peace, Love, and...
All Tags » .NET » PEX (RSS)

Browse by Tags

  • Pop Quiz: .NET Integers, Unit Testing, and Boundary Checking

    I ask this question in a bunch of my talks, mostly because most folks aren’t aware of this. What is the bug in the following method? public int Add( int num1, int num2) { return num1 + num2; } Do you see it? In a simple unit test, the method appears to work as expected: [ TestMethod ()] public void AddTest...
    Posted to .NETicated (Weblog) by Steve on 08-26-2009
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.