Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Update toroidal progression test for post-cone-import behavior

Yuechen Li14b157cb1597
diff --git a/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs b/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs
index 3a12740c..4986dec9 100644
--- a/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs
+++ b/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs
@@ -651,9 +651,14 @@ public sealed class Step242ImporterTests
var import = Step242Importer.ImportBody(text);
- Assert.False(import.IsSuccess);
- Assert.NotEmpty(import.Diagnostics);
- var first = import.Diagnostics[0];
+ Assert.True(import.IsSuccess);
+ Assert.DoesNotContain(import.Diagnostics,
+ d => d.Message.Contains("TOROIDAL_SURFACE", StringComparison.OrdinalIgnoreCase));
+
+ var tessellation = BrepDisplayTessellator.Tessellate(import.Value);
+ Assert.False(tessellation.IsSuccess);
+ Assert.NotEmpty(tessellation.Diagnostics);
+ var first = tessellation.Diagnostics[0];
Assert.DoesNotContain("TOROIDAL_SURFACE", first.Message, StringComparison.OrdinalIgnoreCase);
}