Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -6,11 +6,13 @@
|
||||
|
||||
using Xunit;
|
||||
|
||||
using StellaOps.TestKit;
|
||||
namespace StellaOps.Resolver.Tests;
|
||||
|
||||
public class EdgeIdTests
|
||||
{
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void EdgeId_ComputedDeterministically()
|
||||
{
|
||||
// EDGEID-9100-015: EdgeId computed deterministically
|
||||
@@ -25,7 +27,8 @@ public class EdgeIdTests
|
||||
Assert.Equal(64, edgeId1.Value.Length); // SHA256 hex
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void EdgeId_OrderingConsistentWithStringOrdering()
|
||||
{
|
||||
// EDGEID-9100-016: EdgeId ordering is consistent
|
||||
@@ -43,7 +46,8 @@ public class EdgeIdTests
|
||||
Assert.Equal(sorted1, sorted2);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void GraphHash_ChangesWhenEdgeAddedOrRemoved()
|
||||
{
|
||||
// EDGEID-9100-017: Graph hash changes with edge changes
|
||||
@@ -63,7 +67,8 @@ public class EdgeIdTests
|
||||
Assert.NotEqual(graph2.GraphDigest, graph3.GraphDigest);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void EdgeDelta_CorrectlyIdentifiesChanges()
|
||||
{
|
||||
// EDGEID-9100-018: Delta detection identifies changes
|
||||
@@ -86,7 +91,8 @@ public class EdgeIdTests
|
||||
Assert.Empty(delta.ModifiedEdges);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[Trait("Category", TestCategories.Unit)]
|
||||
[Fact]
|
||||
public void EdgeId_IsIdempotent()
|
||||
{
|
||||
// EDGEID-9100-019: Property test - idempotent computation
|
||||
|
||||
Reference in New Issue
Block a user