refactor(posts): remove CI Fiber part comment override
A fixed override wrote the same text on every part, making parts indistinguishable in the program. Each part's ( PART:... ) comment now always uses its source file or drawing name. Saved configs that still contain PartComment load normally; the key is ignored.
This commit is contained in:
@@ -329,4 +329,17 @@ public class CIFiberPostProcessorTests
|
||||
Assert.Equal("SSN", config.ResolveMaterialCode(" STAINLESS "));
|
||||
Assert.Equal("MSN", config.ResolveMaterialCode("Aluminum"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SavedConfigWithRetiredPartComment_StillLoads()
|
||||
{
|
||||
const string json = """
|
||||
{ "PartComment": "OLD", "MaxTableX": 120.0, "DefaultMaterialCode": "SSN" }
|
||||
""";
|
||||
|
||||
var config = System.Text.Json.JsonSerializer.Deserialize<CIFiberPostConfig>(json)!;
|
||||
|
||||
Assert.Equal(120.0, config.MaxTableX);
|
||||
Assert.Equal("SSN", config.DefaultMaterialCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user