public void ShouldSplitLines() { string words = "A Be CCc DDDD EEEEE"; var lines = WordParseHelper.GetWordsPerLine(words, 8); lines.Should().HaveCount(2); }
public void ShouldSplitSmallerLines() { string words = "Abbbbbbbb Be CCc DbbbbbbDDD EEEEE"; var lines = WordParseHelper.GetWordsPerLine(words, 4); lines.Should().HaveCount(4); }
public void ShouldSplitWords() { string words = "First Second"; var lines = WordParseHelper.GetWordsPerLine(words, 4); lines.Should().HaveCount(2); lines[0].Should().Be("First"); lines[1].Should().Be("Second"); }
private void UpdateDescription() { Description.Items.Clear(); Description.Items.Add(_currentPodcast.Title); string[] items = WordParseHelper.GetWordsPerLine(_currentPodcast.Description, 130); foreach (string item in items) { Description.Items.Add(item); } }