Files
OpenNest/OpenNest.IO.Tests/TestDrawings.cs
T
ajandClaude Opus 5.5 06ec8b1c43 test(io): share the square drawing fixture
NestSnapshotTests and PartCuttingParametersPersistenceTests built the
same 4 x 4 square drawing. Both now use TestDrawings.Square.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 10:53:24 -05:00

19 lines
529 B
C#

using OpenNest.Converters;
using OpenNest.Geometry;
namespace OpenNest.IO.Tests;
/// <summary>Drawings the persistence tests share.</summary>
internal static class TestDrawings
{
/// <summary>A 4 x 4 square drawing named "Square", built from lines.</summary>
public static Drawing Square() =>
new("Square", ConvertGeometry.ToProgram(new List<Entity>
{
new Line(0, 0, 4, 0),
new Line(4, 0, 4, 4),
new Line(4, 4, 0, 4),
new Line(0, 4, 0, 0),
}));
}