mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-02 20:41:35 -05:00
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>
19 lines
529 B
C#
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),
|
|
}));
|
|
}
|