Skip to content

Instantly share code, notes, and snippets.

View jessehouwing's full-sized avatar

Jesse Houwing jessehouwing

View GitHub Profile
@jessehouwing
jessehouwing / TestHelper.cs
Created December 18, 2020 12:38 — 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);
// This is a .NET 3.5 console app, compiled with the C# 6 compiler from Visual Studio 2015 RTM
using System;
namespace System.Runtime.CompilerServices
{
internal class FormattableStringFactory
{
public static FormattableString Create(string messageFormat, params object[] args)
{
return new FormattableString(messageFormat, args);