Skip to content

Commit

Permalink
[.Net] Update FunctionCallTemplate.tt to encode " (#3068)
Browse files Browse the repository at this point in the history
* Update FunctionCallTemplate.tt

changed the desscription assigning to handle double quotes in comments and prevent the generated code from breaking.

* Added the necessary changes

Fixed handling of double quotes in descriptions within FunctionCallTemplate.tt.
Standardized newline characters to ensure consistency.
Updated test cases in FunctionCallTemplateEncodingTests to verify correct encoding of double quotes in descriptions.
Cleaned up unnecessary using directives in FunctionCallTemplateEncodingTests.
Aligned the template with the approved test output.

* test cases passing

Test cases passing like `Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     9, Skipped:     0, Total:     9, Duration: 66 ms - AutoGen.SourceGenerator.Tests.dll (net8.0)`

* Delete FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt

Deleted the ApprovalTests/FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt successfully!

* Revert "Delete FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt"

This reverts commit 7a6ea9c.

---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
  • Loading branch information
prithvi2226 and LittleLittleCloud authored Jul 5, 2024
1 parent 0a82b3e commit 82903f5
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 306 deletions.
Loading

0 comments on commit 82903f5

Please sign in to comment.