コード例 #1
0
        public void LongestStringShouldReturnLongest()
        {
            var seq = new StringSequence();

            seq.Add("");
            seq.Add("abc");
            seq.Add("0918034");

            var longest = seq.LongestString();

            Assert.Equal("0918034", longest);
        }
コード例 #2
0
        public void LongestStringShouldReturnLongest()
        {
            //arrange
            var seq = new StringSequence();

            seq.Add("");
            seq.Add("abc");
            seq.Add("023456789");

            //act
            var longest = seq.LongestString();

            //assert
            Assert.Equal("0123456789", longest);
        }