feat(05-01): make helper methods internal and add unit tests

- Changed IsThrottleException to internal static in ExecuteQueryRetryHelper
- Changed BuildPagedViewXml to internal static in SharePointPaginationHelper
- Created ExecuteQueryRetryHelperTests: 5 tests (throttle true x3, non-throttle false, nested false)
- Created SharePointPaginationHelperTests: 5 tests (null, empty, whitespace, replace, append)
This commit is contained in:
Dev
2026-04-03 16:34:54 +02:00
parent 0122a47c9e
commit 4d7e9ea02a
4 changed files with 84 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public static class ExecuteQueryRetryHelper
}
}
private static bool IsThrottleException(Exception ex)
internal static bool IsThrottleException(Exception ex)
{
var msg = ex.Message;
return msg.Contains("429") || msg.Contains("503") ||