How should I test the change I add in JsonExceptionWriterHelpers? #1581
-
Hello everyone, I am new to open source but not to development. I am working on JsonExceptionWriterHelper.cs class. I think it is quite easy to understand and fix. I am simply looking for TODO in the code. The TODO I am working on is this one: /// This method escapes a string for use as a JSON string value. Please tell me am I doing it a right way? Lastly, how I need to text the change I add? I see a test folder and see multiple tests, do I need to create my own test for the change I implement? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@Anirudhrawat Please confirm if your question is related to usage of |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@Anirudhrawat I see that you have submitted PR #1584. The PR is assigned to @normj for review. The helper method is trying to escape strings properly in JSON format. May be you could write a unit test case that compares actual and expected output (per old logic) for different string escape sequences, when used with new logic!