intacct-sdk-net icon indicating copy to clipboard operation
intacct-sdk-net copied to clipboard

Updating Escape Quote Replacement and Tests

Open Niiiiiic opened this issue 1 year ago • 0 comments

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)

Niiiiiic avatar May 23 '23 14:05 Niiiiiic