public void SyntaxFacts_Identifier_GetParenthesizedIdentifier_ReturnsIdentifier_AndEscapesClosingBrackets() { const string text = "lorem [ipsum]"; var quoted = SyntaxFacts.GetParenthesizedIdentifier(text); var expected = "[" + text.Replace("]", "]]") + "]"; Assert.Equal(expected, quoted); }
public void SyntaxFacts_Identifier_GetParenthesizedIdentifier_ReturnsIdentifier() { const string text = "lorem ipsum"; var quoted = SyntaxFacts.GetParenthesizedIdentifier(text); var expected = "[" + text + "]"; Assert.Equal(expected, quoted); }