Skip to content

Updating Escape Quote Replacement and Tests - #236

Open
Niiiiiic wants to merge 1 commit into
intacct:masterfrom
Niiiiiic:master
Open

Updating Escape Quote Replacement and Tests#236
Niiiiiic wants to merge 1 commit into
intacct:masterfrom
Niiiiiic:master

Conversation

@Niiiiiic

@Niiiiiic Niiiiiic commented May 23, 2023

Copy link
Copy Markdown

Background

When using the Sage Intacct SDK comparison classes for strings, single quotes were not being escaped. For example, the string "Bob's Pizza, Inc." would be converted to "Bob's Pizza, Inc." instead of "Bob\'s Pizza, Inc.". This change updates the value "\'" with "\\'" in each string.Replace(), so that the single quote can be properly escaped. The tests for escaped single quotes were also updated to reflect this change.

Testing

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:41.82] Intacct.SDK.Tests.Xml.RequestHandlerTest.MockExecuteWithDebugLoggerTest [SKIP]
[xUnit.net 00:00:41.82] Intacct.SDK.Tests.OnlineClientTest.LoggerTest [SKIP]
Skipped Intacct.SDK.Tests.Xml.RequestHandlerTest.MockExecuteWithDebugLoggerTest [1 ms]
Skipped Intacct.SDK.Tests.OnlineClientTest.LoggerTest [1 ms]
[xUnit.net 00:00:41.82] Intacct.SDK.Tests.Xml.RequestHandlerTest.MockExecuteOfflineWithSessionCredsTest [SKIP]
Skipped Intacct.SDK.Tests.Xml.RequestHandlerTest.MockExecuteOfflineWithSessionCredsTest [1 ms]

Passed! - Failed: 0, Passed: 497, Skipped: 3, Total: 500, Duration: 205 ms - Intacct.SDK.Tests.dll (netcoreapp3.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant