Pef for fun – an interesting tool to promote TDD

Hi Folks, the PEX team has released on online version of their unit testing tool at http://www.pexforfun.com/ I found this to be a real fun way to explore and understand how Test Driven Development is all about. having said that, i’d like to add that PEX is much more than the above site. for more…


What happens when a constuctor is called

Consider the following class public class MyClass{    public int myField = 4;     public MyClass()    {        this.myField = 5;    }}  when we compile this class, we get an assembly with IL in it. The parameterless constructor gets converted into a method with the name .ctor Now, if we see the IL that gets generated for this .ctor method, we might expect it to have IL opcodes to assign the value…

2