From 06485053fcee523198c17f50cad549ba4d180f34 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 10 Apr 2026 17:39:50 -0400 Subject: [PATCH] test(shapes): cover empty-string PipeSize in addition to null --- OpenNest.Tests/Shapes/PipeFlangeShapeTests.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenNest.Tests/Shapes/PipeFlangeShapeTests.cs b/OpenNest.Tests/Shapes/PipeFlangeShapeTests.cs index f8aafdf..fbf3b37 100644 --- a/OpenNest.Tests/Shapes/PipeFlangeShapeTests.cs +++ b/OpenNest.Tests/Shapes/PipeFlangeShapeTests.cs @@ -114,8 +114,10 @@ public class PipeFlangeShapeTests Assert.Equal(expectedArea, drawing.Area, 0.5); } - [Fact] - public void GetDrawing_NullOrEmptyPipeSize_OmitsCenterBore() + [Theory] + [InlineData(null)] + [InlineData("")] + public void GetDrawing_NullOrEmptyPipeSize_OmitsCenterBore(string pipeSize) { var shape = new PipeFlangeShape { @@ -123,7 +125,7 @@ public class PipeFlangeShapeTests HoleDiameter = 1, HolePatternDiameter = 7, HoleCount = 4, - PipeSize = null, + PipeSize = pipeSize, PipeClearance = 0.125 }; var drawing = shape.GetDrawing();