Skip to content

Instantly share code, notes, and snippets.

View agross's full-sized avatar
🔪
Sharpening the saw

Alexander Groß agross

🔪
Sharpening the saw
View GitHub Profile
SideBySideSpecs.new({
:references => %w(Machine.Specifications Machine.Specifications.Clr4 FakeItEasy Castle.Core NServiceBus.Testing),
:projects => FileList.new("source/**/*.csproj"),
:spec_globs => %w(*Specs.cs **/*Specs.cs),
:specs => FileList.new("source/**/*Specs.cs")
}).remove
using System;
using Machine.Specifications;
namespace ns
{
[Behaviors]
public class BazBaz<TException>
where TException : Exception
{
>mspec -p Machine.Specifications.Example.dll Machine.Specifications.Example.CleanupFailure.dll
Specs in Machine.Specifications.Example:
...***
Specs in Machine.Specifications.Example.CleanupFailure:
.
Contexts: 4, Specifications: 7, Time: 0.25 seconds
4 passed, 0 failed, 3 not implemented
@echo off
if %1.==. goto :usage
rem Pass second parameter to override subdir in Dropbox folder.
if %2.==. (
set SUBDIR=%~n1
) else (
set SUBDIR=%~2
)
$scriptPath = Split-Path -parent $MyInvocation.MyCommand.Definition
$folderMaps = @{
'ALT.NET' = 'd:\Users\agross\Coding\.NET\ALT.NET'
'AppData\Ghisler' = 'c:\Users\agross\AppData\Roaming\Ghisler'
'AppData\GnuCash' = 'c:\Users\agross\AppData\Roaming\GnuCash'
'AppData\Miranda IM' = 'c:\Users\agross\AppData\Roaming\Miranda IM'
'AppData\Outlook-Signaturen' = 'c:\Users\agross\AppData\Roaming\Microsoft\Signatures'
'AppData\RoboForm' = 'c:\Users\agross\AppData\Roaming\RoboForm'
'AppData\Subversion' = 'c:\Users\agross\AppData\Roaming\Subversion'
using Machine.Specifications;
namespace ClassLibrary
{
public class Class
{
// Change class name, add properties -> Nested should vanish. But it doesn't.
}
public class Outer
using System.Collections.Generic;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.Resolvers.SpecializedResolvers;
using Castle.Windsor;
using Castle.Windsor.Installer;
using Nancy.Bootstrapper;
using Nancy.Bootstrappers.Windsor;
# For a description of the file format, see the Users Guide
# http://cygwin.com/cygwin-ug-net/using.html#mount-table
D:/Users/agross/Downloads /scratch ntfs binary,posix=0,noacl 0 0
D:/Users/agross/Projekte/GROSSWEBER /gw ntfs binary,posix=0,noacl 0 0
D:/Users/agross/Coding/.NET /play ntfs binary,posix=0,noacl 0 0
D: /d ntfs binary,posix=0,noacl 0 0
C: /c ntfs binary,posix=0,noacl 0 0
C:/Cygwin/bin /usr/bin ntfs binary,posix=0,noacl 0 0
C:/Cygwin/lib /usr/lib ntfs binary,posix=0,noacl 0 0
$ErrorActionPreference = 'Stop'
$scriptPath = Split-Path -parent $MyInvocation.MyCommand.Definition
Import-Module "$scriptPath\tools\deployment-tools"
Import-Module "$scriptPath\tools\certificates"
Import-Module WebAdministration
$permissions = @{
'' = @{
"FullControl" = @(
function Import-Certificate
{
param
(
[IO.FileInfo] $CertFile = $(throw "Parameter -CertFile [System.IO.FileInfo] is required."),
[string[]] $StoreNames = $(throw "Parameter -StoreNames [System.String] is required."),
[switch] $LocalMachine,
[switch] $CurrentUser,
[string] $CertPassword,
[switch] $Verbose