• .NET

    Mocking constructor part 2

    Often we end up in a situation where constructor call on the target type requires us to include  a config file in our test project or requires firing up some external process. To better illustrate this if we create an entity framework data container either new or from an existing database , we will likely to end up with an entry point class that requires either a valid connection string to be passed or if we expand the default constructor we might see this:   /// <summary> /// Initializes a new NorthwindEntities object using the connection string found in the 'NorthwindEntities' section of the application...
    March 22, 2011
  • .NET

    Working with Mock Behaviors in JustMock

    When you create a mock using Mock.Create<> or Mock.Create there are three Behavior modes available. Each one causes the mock to behave in very different ways. For those of you new to mocking, you may not know at first what each of these behaviors mean
    March 18, 2011
  • .NET

    JustCode Q1 2011 RTM is here

    As part of Telerik’s major Q1 2011 release, JustCode arrives with tons of great new stuff. The biggies are Code Cleaning, Decompiling and Options Sharing features.  Our brand new Code Cleaning feature allows you to reformat and tidy up your code in a single step. We have been working on an integrated decompiler for quite some time. It allows you to seamlessly browse through decompiled code in referenced assemblies as if it were source. With this release of JustCode you can start doing that without leaving Visual Studio. Applying code style standards across the team is now possible with the new Options...