Answer the question
In order to leave comments, you need to log in
How to escape quotes inside C# quotes?
Good afternoon, in the training course I came across a task for writing test cases. and i ran into a problem.
It remains to write two tests
1. Escaped single quotes inside single
2. Escaped double quotes inside double
But I can’t figure it out
Here is the condition
Here is what I did
Answer the question
In order to leave comments, you need to log in
Test("'\\\'a\\\''", new[]{"'a'"});
Test("\"\\\"a\\\"\"",new []{"\"a\""});
figured out
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question