stabilizaiton work - projects rework for maintenanceability and ui livening

This commit is contained in:
master
2026-02-03 23:40:04 +02:00
parent 074ce117ba
commit 557feefdc3
3305 changed files with 186813 additions and 107843 deletions

View File

@@ -0,0 +1,30 @@
// <copyright file="HlcTimestampTests.Format.cs" company="StellaOps">
// Copyright (c) StellaOps. Licensed under BUSL-1.1.
// </copyright>
using FluentAssertions;
using Xunit;
namespace StellaOps.HybridLogicalClock.Tests;
public sealed partial class HlcTimestampTests
{
[Fact]
public void ToSortableString_FormatsCorrectly()
{
var timestamp = CreateTimestamp(1704067200000, "scheduler-east-1", 42);
var result = timestamp.ToSortableString();
result.Should().Be("1704067200000-scheduler-east-1-000042");
}
[Fact]
public void ToString_ReturnsSortableString()
{
var timestamp = CreateTimestamp(1704067200000, "node1", 42);
var result = timestamp.ToString();
result.Should().Be(timestamp.ToSortableString());
}
}