Category Archives: Testing

A Dynamic Equality Assertion Method in C#

Ever wanted to assert two objects were equal without having to manually compare their public properties one at a time? Now you can. This method asserts the equality of any two objects by comparing the values of all public, readable properties that have matching names and types. It will compare them even if the objects are different types. This may very well be the last object assertion method you will ever need!

Also posted in .NET, C# | Tagged , , | 4 Responses

Entities, Services & Resources—Three Categories of Objects

After working with domains for several years I find that there are three major categories of objects I work with: Entities, Services, and Resources. There are clear distinctions between these categories in their purpose, content, dependencies and roles. Understanding these categories clarifies what dependencies I should allow, what purpose the objects serve, and how I […]

Also posted in Design, Mocking, Patterns, Principles | Tagged , , , , | Leave a comment

Extreme CI Part 3: The Visual Studio Macro.

How I run a personal CI build every time I build my code in Visual Studio. Summary This week we’ll finish the series by creating the Visual Studio macro that automatically runs the Personal CI process every time we build the code. The Series In this series I show you how to take continuous integration […]

Also posted in .NET, Agile, Continuous Integration, Visual Studio | Tagged , , , , | 2 Responses

Extreme CI Part 2: Setting up Git for a Personal CI

How I run a personal CI build every time I build my code in Visual Studio. Summary This week we setup Git so it commits your changes and pushes them up to the personal CI server. We’ll also create a batch file to automate this process. In part 3 we’ll create the Visual Studio macro […]

Also posted in .NET, Agile, Continuous Integration, Visual Studio | Tagged , , , , | 2 Responses

Extreme Continuous Integration: A Personal CI Build For Visual Studio – Part 1

How I run a personal CI build every time I build my code in Visual Studio. Summary In this series I show you how to take continuous integration to the extreme by building a personal CI server that runs all your tests and adds a commit to source control every time you build in Visual […]

Also posted in .NET, Agile, Continuous Integration, Visual Studio | Tagged , , , , | 2 Responses