public void TestToSentenceCaseWithPunctuationWithoutFollowingWhitespaceWithRequireWhitespaceAfterPunctuationOption() { Assert.AreEqual("Hello! Please see the attatched archive.zip.", CaseConverter.ToSentenceCase("hello! please see the attatched archive.zip.", SentenceCasingOptions.DetectMultipleSentences | SentenceCasingOptions.RequireWhitespaceAfterPunctuation)); }
public void TestToSentenceCaseWithLeadingWhitespace() { Assert.AreEqual(" Hello!", CaseConverter.ToSentenceCase(" hello!")); }
public void TestToSentenceCaseWithMultipleSentencesAndMultiSentenceOption() { Assert.AreEqual("Hello! Welcome to my test case.", CaseConverter.ToSentenceCase("hello! welcome to my test case.", SentenceCasingOptions.DetectMultipleSentences)); }
public void TestToSentenceCaseWithMultipleSentences() { Assert.AreEqual("Hello! welcome to my test case.", CaseConverter.ToSentenceCase("Hello! welcome to my test case.")); }