17 lines
424 B
C#
17 lines
424 B
C#
using Socialize.Api.Modules.CalendarIntegrations.Services;
|
|
|
|
namespace Socialize.Tests.CalendarIntegrations;
|
|
|
|
public class CalendarImportSyncServiceTests
|
|
{
|
|
[Fact]
|
|
public void NormalizeSyncError_truncates_errors_to_stored_length()
|
|
{
|
|
string message = new('x', 3000);
|
|
|
|
string normalized = CalendarImportSyncService.NormalizeSyncError(message);
|
|
|
|
Assert.Equal(2048, normalized.Length);
|
|
}
|
|
}
|