public void Compare_uses_natural_sorting_when_comparing_the_two_strings() { const string left = "Folder 10"; const string right = "Folder 5"; var result = new NaturalStringComparer().Compare(left, right); result.Should().Be(1); }
public void Compare_returns_difference_in_length_of_the_two_strings(string left, string right) { var result = new NaturalStringComparer().Compare(left, right); result.Should().Be(left.Length - right.Length); }