Skip to content

Instantly share code, notes, and snippets.


Chris Sienkiewicz chsienki

View GitHub Profile
chsienki / ConsoleApp18.csproj
Created Dec 12, 2020
Debuggable runtime generator
View ConsoleApp18.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.8.0" />
chsienki / .gitconfig
Created Sep 15, 2020
Git MRU Branches
View .gitconfig
mru = "!git log -g -n 1000 --format=\"%gd %gs\" --date=relative HEAD@{now} | grep checkout | grep \" to\" | sed 's/HEAD@{\\(.*\\)}.* to\\(.*\\)/(\\1)\\t\\2/' | awk -v OFS=' ' '!x[$NF]++' | head -n 15 | column -ts $'\\t'" -R 1
chsienki / GeneratorTests.cs
Last active Sep 5, 2021
Framework for unit testing generators
View GeneratorTests.cs
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Xunit;
namespace GeneratorTests.Tests
public class GeneratorTests