Beispiel #1
0
        public void Test_3()
        {
            var sut = new LongestPartFinder();

            Assert.That(sut.GetLengthOfLongestSubstring("phcaiodkhycinmbakdsjfplekgwaxkgqbhbhmvtlvwrmrvkqxeepjhvfdmjjewhthnhilkrxanxrelqajavubjfiaxebsjmjgsbfmxganqffrmlcydcsvxpnawskrhmutgpnkpwopudobptikjrfogdeairwyglcrqepnybcpinrybrjudcjalxumwedvngnkvoportnqeshafaodwxwjxvonaumvdtmtkotppuisubxhwcmunbdxcatppdswnsmjnygnrikvienvpysfuxrlikbkndeyxxj", 23), Is.EqualTo(102));
        }
Beispiel #2
0
        public void Test_4()
        {
            var sut = new LongestPartFinder();

            Assert.That(sut.GetLengthOfLongestSubstring("tfxaiakmlmdslooqykfmemxouisgkcxctbbvwypytslqotpfkqapjoqsyjauxolwsigsbkwyekchquoyocfkywvwwcofutasegmwodmmripixjjeltiugqarrmhgywviwgbixxhsbulhgpaylctsjcssqvidcbvwmdciuiknmsnbadlayretgprnsjwwfbrccucogpxmxeutcrkhibmudbinkilrkwdjqsdrpnghaoxilnghdokpallikfxdripqkkymrhdcttticwhkiowsypqoamxxbyiqaepwtf", 18), Is.EqualTo(46));
        }
Beispiel #3
0
        public void Test_2()
        {
            var sut = new LongestPartFinder();

            Assert.That(sut.GetLengthOfLongestSubstring("aaaaaaaabc", 3), Is.EqualTo(10));
        }