24 lines
641 B
C#
24 lines
641 B
C#
// <copyright file="InMemoryHlcStateStoreTests.cs" company="StellaOps">
|
|
// Copyright (c) StellaOps. Licensed under BUSL-1.1.
|
|
// </copyright>
|
|
using Xunit;
|
|
|
|
namespace StellaOps.HybridLogicalClock.Tests;
|
|
|
|
/// <summary>
|
|
/// Unit tests for <see cref="InMemoryHlcStateStore"/>.
|
|
/// </summary>
|
|
[Trait("Category", "Unit")]
|
|
public sealed partial class InMemoryHlcStateStoreTests
|
|
{
|
|
private static HlcTimestamp CreateTimestamp(string nodeId, long physicalTime, int counter)
|
|
{
|
|
return new HlcTimestamp
|
|
{
|
|
PhysicalTime = physicalTime,
|
|
NodeId = nodeId,
|
|
LogicalCounter = counter
|
|
};
|
|
}
|
|
}
|