Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Update BSpline regression blocker expectation after ellipse progression

Yuechen Lid245e062da6c
diff --git a/Aetheris.Kernel.Core.Tests/Step242/Step242BSplineSurfaceWithKnotsTests.cs b/Aetheris.Kernel.Core.Tests/Step242/Step242BSplineSurfaceWithKnotsTests.cs
index 3e9bd2db..ceeaa832 100644
--- a/Aetheris.Kernel.Core.Tests/Step242/Step242BSplineSurfaceWithKnotsTests.cs
+++ b/Aetheris.Kernel.Core.Tests/Step242/Step242BSplineSurfaceWithKnotsTests.cs
@@ -42,10 +42,10 @@ public sealed class Step242BSplineSurfaceWithKnotsTests
}
[Theory]
- [InlineData("testdata/step242/nist/CTC/nist_ctc_02_asme1_ap242-e2.stp", "Importer.EntityFamily")]
- [InlineData("testdata/step242/nist/FTC/nist_ftc_07_asme1_ap242-e2.stp", "")]
- [InlineData("testdata/step242/nist/FTC/nist_ftc_10_asme1_ap242-e2.stp", "")]
- public void Step242_NistTargets_FirstBlockerIsExplicitAfterBSplineSurfaceProgression(string relativePath, string expectedSource)
+ [InlineData("testdata/step242/nist/CTC/nist_ctc_02_asme1_ap242-e2.stp", "tessellator", "Viewer.Tessellation.CurvedTopologyUnsupported", "Face 1 curved tessellation expected mirrored")]
+ [InlineData("testdata/step242/nist/FTC/nist_ftc_07_asme1_ap242-e2.stp", "", "", "")]
+ [InlineData("testdata/step242/nist/FTC/nist_ftc_10_asme1_ap242-e2.stp", "", "", "")]
+ public void Step242_NistTargets_FirstBlockerIsExplicitAfterBSplineSurfaceProgression(string relativePath, string expectedLayer, string expectedSource, string expectedMessagePrefix)
{
var entry = new Step242CorpusManifestEntry(
Id: Path.GetFileNameWithoutExtension(relativePath),
@@ -58,7 +58,21 @@ public sealed class Step242BSplineSurfaceWithKnotsTests
ExpectGeometryKinds: null);
var run = Step242CorpusManifestRunner.RunOne(entry);
- Assert.Equal(expectedSource, run.FirstDiagnostic.Source);
+ if (!string.IsNullOrEmpty(expectedLayer))
+ {
+ Assert.Equal(expectedLayer, run.FirstFailureLayer);
+ }
+
+ if (!string.IsNullOrEmpty(expectedSource))
+ {
+ Assert.Equal(expectedSource, run.FirstDiagnostic.Source);
+ }
+
+ if (!string.IsNullOrEmpty(expectedMessagePrefix))
+ {
+ Assert.StartsWith(expectedMessagePrefix, run.FirstDiagnostic.MessagePrefix, StringComparison.Ordinal);
+ }
+
Assert.False(string.IsNullOrWhiteSpace(run.FirstDiagnostic.MessagePrefix));
}
}