Category Visual Studio

Unit Testing – Setup pattern (Moq)

In my previous post I mentioned that large unit test setups can be difficult to maintain / understand. This problem can be reduced by following a test pattern. I want to share with you a pattern I use, and I think works really well. In this post I will be using C#, Moq libary and Visual Studio test […]

How to NuGet jQuery 1, the Right Way

The jQuery team made a decision in 2013 to split the library into two versions, one supporting IE6 upwards and the other IE9, these were labeled jQuery 1 and 2 respectively. This resulted in two key NuGet packages on the gallery: jQuery1 (community contribution) jQuery (official) If you need IE6, 7 or 8 support then the obvious […]

Cross Project TypeScript Unit Testing – Part 2

Part 1 of this post focused on cross project TypeScript (TS) referencing, this post will focus on how this can be used with Chutzpah to conduct cross project unit testing. Chutzpah is a TS, CoffeeScript and JavaScript unit test runner, with a built in Visual Studio extension and command line runner. In the last post I […]

Cross Project TypeScript Unit Testing – Part 1

This is the first of a two part blog on cross project TypeScript (TS) and unit testing with Chutzpah. This post will focus on the cross project aspect, more specifically how to write Typescript with dependencies over two Visual Studio projects. Let’s consider the following simple example. I have “Project A” which contains a “Scripts/typings” folder […]