Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Fix ftc_06 toroidal regression to expect tessellation success

Yuechen Li8182b8b615d2
diff --git a/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs b/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs
index aa633025..2c9cc86b 100644
--- a/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs
+++ b/Aetheris.Kernel.Core.Tests/Step242/Step242ImporterTests.cs
@@ -714,10 +714,9 @@ public sealed class Step242ImporterTests
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);
+ Assert.True(tessellation.IsSuccess);
+ Assert.DoesNotContain(tessellation.Diagnostics,
+ d => d.Message.Contains("TOROIDAL_SURFACE", StringComparison.OrdinalIgnoreCase));
}
private static double NormalizeToZeroTwoPi(double angle)