Skip to content

Instantly share code, notes, and snippets.

View svukovic's full-sized avatar

Slaven Vukovic svukovic

  • Maestral Solutions
  • Sarajevo
View GitHub Profile
@svukovic
svukovic / TestHelper.cs
Created January 30, 2012 18:53 — forked from haacked/TestHelper.cs
String Comparison Unit Test Helper
public static class TestHelpers
{
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue)
{
ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out);
}
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle)
{
ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out);
@svukovic
svukovic / unit_test_template.cs
Created June 4, 2012 11:48
Unit test live template for Resharper (by R. Oshervore)
[Test]
public void $MethodUnderTest$_$Scenario$_$ExpectedBehavior$()
{
//Arrange
//Act
//Assert
}
@svukovic
svukovic / HomeController.cs
Created August 17, 2012 09:11 — forked from ardalis/HomeController.cs
MVC4RC and StructureMap
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MvcApplication1.Controllers
{
public interface IHelloService
{