Exemplo n.º 1
0
 public void Test_CleanTrailingBackSlash()
 {
     Assert.AreEqual(string.Empty, ArgumentUtils.CleanTrailingBackslash(string.Empty), "#1");
     Assert.AreEqual("a", ArgumentUtils.CleanTrailingBackslash("a"), "#2");
     Assert.AreEqual("a", ArgumentUtils.CleanTrailingBackslash("a\\"), "#3");
     Assert.AreEqual("a", ArgumentUtils.CleanTrailingBackslash("a\\\\"), "#4");
     Assert.AreEqual("\"a\\\"", ArgumentUtils.CleanTrailingBackslash("\"a\\\""), "#5");
     Assert.AreEqual("a\\\"", ArgumentUtils.CleanTrailingBackslash("a\\\""), "#6");
 }