Unit Testing .NET Application with Moq Framework

Hi guys, It's been a while since my last post here. In 2011 however I will try to come back to my routine of posting something new at least once a month. Today, I will share with you the way I've been writing tests for my ASP.NET applications using Moq framework. So let's start. Firstly, … Continue reading Unit Testing .NET Application with Moq Framework

Singleton (Anti-) Pattern

I’ve implemented my first design patterns at college, while creating a web system during the software engineer course. My classmates and I needed a facade class with a single instance of it throughout the system. So, because we’re really smart, we’ve applied the Facade and Singleton pattern. Actually, we’ve implemented the patterns without knowledge of … Continue reading Singleton (Anti-) Pattern

JavaScript Unit Testing with YUI Test

Hi, some posts ago I talked about JavaScript and user interface testing using Selenium. Today, I will present another option to test your JavaScript code. YUI Test is a testing framework for browser-based JavaScript solutions, providing JavaScript Unit Testing. While not a direct part from any specific xUnit framework, YUI Test does derive some characteristics … Continue reading JavaScript Unit Testing with YUI Test

Interface Unit Tests with Selenium

Hi, this week started with tests development, since I took the responsability of testing a Web Application. However, different from the others tests that I've done in the past, which covered C# code,  this ones are related to the project's user interface. So, testing javascript code and interface functionality are now part of my work. … Continue reading Interface Unit Tests with Selenium