Chocolatey machine setup

https://gist.github.com/chrismckelt/3884f94078a7bd3a773b   #Administrator privileges check If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` [Security.Principal.WindowsBuiltInRole] “Administrator“)) { Write–Warning “You do not have Administrator rights!`nPlease run the build shell as administrator!“ exit } $scriptPath = $MyInvocation.MyCommand.Path $scriptDirectory = Split–Path $scriptPath $customDir […]

Context Specification

tnamespace Example { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Rhino.Mocks; public abstract class ContextSpecification<T> { protected Exception executionException; protected T sut { get; set; } [TestInitialize] public void Start() { this.Context(); this.SetupMockResults(); this.Because(); } [TestCleanup] public […]