Exemple #1
0
    internal static bool StartEqual(string?s1, string?s2, bool ignoreCase = false)
    {
        var strip1 = new Strip(s1, !ignoreCase);
        var strip2 = new Strip(s2, !ignoreCase);

        return(strip1.GetLength() < strip2.GetLength() ? strip2.StartsWith(strip1)
                                                       : strip1.StartsWith(strip2));
    }
Exemple #2
0
 public void GetLengthTest1(string?input, int expected) => Assert.AreEqual(expected, Strip.GetLength(input));