public void CheckValues(bool ignoreCase, string expected, string actual, ComparisonResultType expectedResult) { var plugin = new SimpleStringComparerPlugin() { IgnoreCase = ignoreCase }; var output = plugin.TryCompare("key", expected, actual); Assert.Equal(expectedResult, output.ComparisonResultType); }
public void CheckNullHandling(string expected, string actual) { var plugin = new SimpleStringComparerPlugin() { TreatNullAndEmptyStringsAsEqual = true }; var output = plugin.TryCompare("pair", expected, actual); Assert.Equal(ComparisonResultType.Equal, output.ComparisonResultType); }