public void simple_sentence_tabs_newlines_get_stripped() { var stringb = new StringBuilder(); stringb.Append("This is a test sentence. Sentence Two. \t\t"); stringb.Append(Environment.NewLine); stringb.Append(Environment.NewLine); stringb.Append("THis is another; and a 4th\t"); stringb.Append(Environment.NewLine); var simple = new SimpleTextGenerator(stringb.ToString()); Assert.That(simple.GetSentence().GetText(), Is.AnyOf( new string[] { "This is a test sentence", "Sentence Two", "THis is another", "and a 4th" } )); }
public void simple_sentence_extra_whitespace(string fullText, string[] possibilities) { var simple = new SimpleTextGenerator(fullText); Assert.That(simple.GetSentence().GetText(), Is.AnyOf(possibilities)); }
public void simple_sentence_parsed_correctly(string fullText, string[] possibilities) { var simple = new SimpleTextGenerator(fullText); Assert.That(simple.GetSentence().GetText(), Is.AnyOf(possibilities)); }