Skip to content

Instantly share code, notes, and snippets.

View AMCN41R's full-sized avatar
Drinking coffee

Alex McNair AMCN41R

Drinking coffee
View GitHub Profile
@AMCN41R
AMCN41R / ClassComparer.cs
Last active August 10, 2020 10:07
C# Generic Equality Comparer
namespace TestHelpers
{
using System;
using System.Collections.Generic;
/// <summary>
/// An <see cref="IEqualityComparer{T}"/> implementation that uses the
/// <see cref="ComparerFactory.JsonCompare{T}(T, T)"/> function to determine
/// equality.
/// </summary>
@AMCN41R
AMCN41R / ControllerAssertions.cs
Last active June 6, 2020 11:26
C# Controller Unit Test Assertion Helpers
namespace TestHelpers
{
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Routing;
/// <summary>
@AMCN41R
AMCN41R / PowerShellProfile.ps1
Last active January 5, 2021 17:27
My PowerShell Profile
try {
# UI
$console = $host.ui.RawUI
# VARIABLES
$me = $env:userprofile