public void Test_TryFindCommonPrefix_TwoStrNoIgnoreCase()
        {
            string commonPrefix;

            Assert.IsFalse(ExtensionMethodsOnPathsCollection.TryFindCommonPrefix(
                               new string[] { "hello", "HELLO" },
                               false, // NO ignore case
                               '.',
                               out commonPrefix));
        }
        public void Test_TryFindCommonPrefix_OneStringEmpty()
        {
            string commonPrefix;

            Assert.IsFalse(ExtensionMethodsOnPathsCollection.TryFindCommonPrefix(
                               new string[] { "" },
                               false, // no ignore case
                               '.',
                               out commonPrefix));
        }
        public void Test_TryFindCommonPrefix_TwoMoreStrNoIgnoreCase2()
        {
            string commonPrefix;

            Assert.IsTrue(ExtensionMethodsOnPathsCollection.TryFindCommonPrefix(
                              new string[] { "hello.allo.a", "hello.allo.A.A", "hello.allo.A.B", "hello.allo.A.C" },
                              false, // NO ignore case
                              '.',
                              out commonPrefix));
            Assert.IsTrue(commonPrefix == "hello.allo");
        }
        public void Test_TryFindCommonPrefix_MoreStrIgnoreCase2()
        {
            string commonPrefix;

            Assert.IsTrue(ExtensionMethodsOnPathsCollection.TryFindCommonPrefix(
                              new string[] { "hello.HELLO.ALLO.a", "hello.hello.Allo.A.A", "HELLO.HEllO.Allo.A.B", "Hello.HELLO.allo.A.C" },
                              true, // ignore case
                              '.',
                              out commonPrefix));
            Assert.IsTrue(commonPrefix.ToLower() == "hello.hello.allo.a");
        }
        public void Test_TryFindCommonPrefix_TwoStrIgnoreCase2()
        {
            string commonPrefix;

            Assert.IsTrue(ExtensionMethodsOnPathsCollection.TryFindCommonPrefix(
                              new string[] { "hello.A", "HELLO.B" },
                              true, // ignore case
                              '.',
                              out commonPrefix));
            Assert.IsTrue(commonPrefix.ToLower() == "hello");
        }
        public void Test_TryFindCommonPrefix_OneStr()
        {
            string commonPrefix;

            Assert.IsTrue(ExtensionMethodsOnPathsCollection.TryFindCommonPrefix(
                              new string[] { "hello" },
                              false, // no ignore case
                              '.',
                              out commonPrefix));
            Assert.IsTrue(commonPrefix == "hello");
        }