feat(io): integrate TitleBlockDetector into CadImporter pipeline
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -134,5 +134,21 @@ namespace OpenNest.Tests.IO
|
||||
Assert.NotNull(drawing.Program);
|
||||
Assert.NotNull(drawing.SourceEntities);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Import_WhenDetectTitleBlockTrue_PopulatesTitleBlockEntityIds()
|
||||
{
|
||||
var result = CadImporter.Import(TestDxf);
|
||||
|
||||
Assert.NotNull(result.TitleBlockEntityIds);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Import_WhenDetectTitleBlockFalse_TitleBlockEntityIdsIsNull()
|
||||
{
|
||||
var result = CadImporter.Import(TestDxf, new CadImportOptions { DetectTitleBlock = false });
|
||||
|
||||
Assert.Null(result.TitleBlockEntityIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user