<PackageReference Include="NUnit" Version="3.0.0-beta-4" />

StringUtil

public class StringUtil
Provides methods to support legacy string comparison methods.
using System.Globalization; namespace NUnit.Framework.Internal { public class StringUtil { public static int Compare(string strA, string strB, bool ignoreCase) { CompareOptions options = ignoreCase ? CompareOptions.IgnoreCase : CompareOptions.None; return string.Compare(strA, strB, CultureInfo.CurrentCulture, options); } public static bool StringsEqual(string strA, string strB, bool ignoreCase) { return Compare(strA, strB, ignoreCase) == 0; } } }