public void TitleLenghtOverflow()
        {
            var cardItem  = new AliceGalleryCardItem();
            var exception = Assert.Throws <ArgumentException>(() => cardItem.Title = _tooLongString);

            Assert.Equal(nameof(cardItem.Title), exception.ParamName);
            TestOutputHelper.WriteLine($"Error message: {exception.Message}");
        }
        public void TrimString()
        {
            var cardItem = new AliceGalleryCardItem
            {
                Title = AliceHelper.PrepareGalleryCardItemTitle(_tooLongString)
            };

            Assert.True(cardItem.Title.Length < AliceGalleryCardItem.MaxTitleLength);
            Assert.EndsWith(AliceHelper.DefaultReducedStringEnding, cardItem.Title, StringComparison.OrdinalIgnoreCase);
            TestOutputHelper.WriteLine(cardItem.Title);
        }
        public void MandatoryEnding()
        {
            var fireEmoji = char.ConvertFromUtf32(0x1F525);
            var cardItem  = new AliceGalleryCardItem
            {
                Title = AliceHelper.PrepareGalleryCardItemTitle("IamShort", fireEmoji, AliceHelper.DefaultReducedStringEnding)
            };

            Assert.True(cardItem.Title.Length < AliceGalleryCardItem.MaxTitleLength);
            Assert.EndsWith(fireEmoji, cardItem.Title, StringComparison.OrdinalIgnoreCase);
            TestOutputHelper.WriteLine(cardItem.Title);
        }