public void Should_do_when_condition() { Check.That( WordWrap.WrapLine( "The Romans were a clever bunch. They conquered most of Europe and ruled it for hundreds of", 10)) .IsEqualTo("The Romans\nwere a\nclever\nbunch.\nThey\nconquered\nmost of\nEurope and\nruled it\nfor\nhundreds\nof"); }
public void Should_split_words_of_multiple_different_sizes_into_multiple_lines_containing_more_than_one_word() { Check.That(WordWrap.WrapLine("abcde fg efg a abcd", 6)).IsEqualTo("abcde\nfg efg\na abcd"); }
public void Should_split_words_of_same_sizes_into_multiple_lines() { Check.That(WordWrap.WrapLine("abc cd efg gh", 3)).IsEqualTo("abc\ncd\nefg\ngh"); }
public void Should_split_string_with_words_of_same_size_into_multiple_lines() { Check.That(WordWrap.WrapLine("ab cd ef gh", 2)).IsEqualTo("ab\ncd\nef\ngh"); }
public void Should_split_word_when_unable_to_split_blank() { Check.That(WordWrap.WrapLine("ab cd", 4)).IsEqualTo("ab\ncd"); }
public void Should_split_string_with_blank_caracter() { Check.That(WordWrap.WrapLine("ab cd", 2)).IsEqualTo("ab\ncd"); }
public void Should_return_empty_string_when_column_is_zero() { Check.That(WordWrap.WrapLine("test_string", 0)).IsEqualTo("test_string"); }