Advertisement
Guest User

Handle test failure 1

a guest
Feb 26th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. [TestMethod]
  2. public void TestHasEmbeddedSpaces()
  3. {
  4.     // Tests that we expect to return true.
  5.     string[] phrases = { "one car", "Name\u0009Description",
  6.                          "Line1\nLine2", "Line3\u000ALine4",
  7.                          "Line5\u000BLine6", "Line7\u000CLine8",
  8.                          "Line0009\u000DLine10", "word1\u00A0word2" };
  9.     foreach (var phrase in phrases)
  10.     {
  11.         bool result = phrase.HasEmbeddedSpaces();
  12.         Assert.IsTrue(result,
  13.                       $"Expected for '{phrase}': true; Actual: {result}");
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement