Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Fix tessellation tests for PolylineProfile2D API and xUnit analyzer
Yuechen Li14b1410f97c2
diff --git a/Aetheris.Kernel.Core.Tests/Brep/Tessellation/BrepDisplayTessellatorTests.cs b/Aetheris.Kernel.Core.Tests/Brep/Tessellation/BrepDisplayTessellatorTests.csindex c790d8ba..b6155458 100644--- a/Aetheris.Kernel.Core.Tests/Brep/Tessellation/BrepDisplayTessellatorTests.cs+++ b/Aetheris.Kernel.Core.Tests/Brep/Tessellation/BrepDisplayTessellatorTests.cs@@ -76,13 +76,13 @@ public sealed class BrepDisplayTessellatorTests[Fact]public void Tessellate_ExtrudeRectangle_Succeeds(){- var profile = new PolylineProfile2D(+ var profile = PolylineProfile2D.Create([new ProfilePoint2D(-1d, -0.5d),new ProfilePoint2D(1d, -0.5d),new ProfilePoint2D(1d, 0.5d),new ProfilePoint2D(-1d, 0.5d),- ]);+ ]).Value;var extruded = BrepExtrude.Create(profile, DefaultFrame, 2d);var result = BrepDisplayTessellator.Tessellate(extruded.Value);@@ -159,7 +159,7 @@ public sealed class BrepDisplayTessellatorTestsvar result = BrepDisplayTessellator.Tessellate(unsupported);Assert.False(result.IsSuccess);- var diagnostic = Assert.Single(result.Diagnostics.Where(d => d.Code == KernelDiagnosticCode.NotImplemented));+ var diagnostic = Assert.Single(result.Diagnostics, d => d.Code == KernelDiagnosticCode.NotImplemented);Assert.Equal("Face 1 planar tessellation requires exactly one loop.", diagnostic.Message);}