public void UnescapeOctalCodePoints_reverses_EscapeOctalCodePoints(string input) { Assert.AreEqual(input, VsrModule.UnescapeOctalCodePoints(VsrModule.EscapeOctalCodePoints(input))); }
[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, VsrModule.EscapeOctalCodePoints(input)); }