public void When_Array_Has_Multiple_Elements_Combine_Them_To_Get_The_Length(string[] fragments, int expected)
        {
            StringAssembler assembler = new StringAssembler();
            int             result    = assembler.FindLongestAssembledString(fragments);

            Assert.That(result, Is.EqualTo(expected));
        }
        public void When_Array_Is_Empty_Return_Zero()
        {
            StringAssembler assembler = new StringAssembler();
            int             result    = assembler.FindLongestAssembledString(new string[0]);

            Assert.That(result, Is.EqualTo(0));
        }
        public void When_All_Array_Elements_Have_Repeated_Letters_Return_Minus_One()
        {
            StringAssembler assembler = new StringAssembler();
            int             result    = assembler.FindLongestAssembledString(new string[3] {
                "banana", "potato", "racecar"
            });

            Assert.That(result, Is.EqualTo(-1));
        }
        public void When_Array_Has_One_Element_With_Duplicate_Characters_Return_Minus_One()
        {
            StringAssembler assembler = new StringAssembler();
            int             result    = assembler.FindLongestAssembledString(new string[1] {
                "coc"
            });

            Assert.That(result, Is.EqualTo(-1));
        }