Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestMethod]
- public void TestHasEmbeddedSpaces()
- {
- // Tests that we expect to return true.
- string[] phrases = { "one car", "Name\u0009Description",
- "Line1\nLine2", "Line3\u000ALine4",
- "Line5\u000BLine6", "Line7\u000CLine8",
- "Line0009\u000DLine10", "word1\u00A0word2" };
- foreach (var phrase in phrases)
- {
- bool result = phrase.HasEmbeddedSpaces();
- Assert.IsTrue(result,
- $"Expected for '{phrase}': true; Actual: {result}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement