Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Escape Quote Replacement and Tests #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Niiiiiic
Copy link

@Niiiiiic Niiiiiic commented May 23, 2023

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
Development

Successfully merging this pull request may close these issues.

1 participant