Пример #1
0
 public void UnescapeOctalCodePoints_reverses_EscapeOctalCodePoints(string input)
 {
     Assert.AreEqual(input, GitModule.UnescapeOctalCodePoints(GitModule.EscapeOctalCodePoints(input)));
 }
Пример #2
0
 [TestCase(@"Привет, World!", @"\320\237\321\200\320\270\320\262\320\265\321\202, World!")] // escaped and not escaped in the same string
 public void EscapeOctalCodePoints_handles_text(string input, string expected)
 {
     Assert.AreEqual(expected, GitModule.EscapeOctalCodePoints(input));
 }