示例#1
0
        public void GivenTitleWithMoreThan256Characters_WhenParseTitleIsCalled_ThenTruncatedTitleIsReturned()
        {
            string title       = new string('*', 257);
            var    parsedTitle = parser.ParseTitle(title);

            parsedTitle.Length.Should().Be(256);
        }
示例#2
0
        public void GivenTitleWith256Characters_WhenParseUserIsCalled_ThenUntouchedTitleIsReturned()
        {
            string title      = new string('*', 256);
            var    parsedUser = parser.ParseTitle(title);

            parsedUser.Should().Be(title);
        }