style: apply CSharpier formatting to all C# sources

Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and
line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests
pass after reformat, full solution builds 0 errors.

Added .csharpierignore so csproj/config XML keeps its existing layout
(CSharpier's XML wrapping churns attributes with zero benefit).

Formatting is now enforceable: dotnet csharpier check . passes.
This commit is contained in:
aj
2026-09-20 16:41:50 -04:00
parent 8e6fa677fb
commit aec0523062
476 changed files with 16592 additions and 7800 deletions
+28 -8
View File
@@ -14,14 +14,26 @@ public class CadBendNoteTests
public void DetectedNote_HidesOnlyItsSourceText_AndReturnsWhenBendRemoved()
{
var doc = new CadDocument();
doc.Entities.Add(new Line(new XYZ(0, 0, 0), new XYZ(10, 0, 0))
doc.Entities.Add(
new Line(new XYZ(0, 0, 0), new XYZ(10, 0, 0))
{
Layer = new Layer("BEND"),
LineType = new LineType("CENTER"),
}
);
var note = new MText
{
Layer = new Layer("BEND"),
LineType = new LineType("CENTER")
});
var note = new MText { Value = "UP 90° R0.125", InsertPoint = new XYZ(5, 0.1, 0), Height = 0.2 };
Value = "UP 90° R0.125",
InsertPoint = new XYZ(5, 0.1, 0),
Height = 0.2,
};
doc.Entities.Add(note);
var unrelated = new MText { Value = note.Value, InsertPoint = new XYZ(50, 50, 0), Height = 0.2 };
var unrelated = new MText
{
Value = note.Value,
InsertPoint = new XYZ(50, 50, 0),
Height = 0.2,
};
doc.Entities.Add(unrelated);
var bends = new SolidWorksBendDetector().DetectBends(doc);
@@ -29,7 +41,13 @@ public class CadBendNoteTests
Assert.Equal(note.Handle, bend.SourceNoteHandle);
var text = new CadText { SourceHandle = note.Handle, Value = note.Value };
Assert.True(text.IsReplacedByBendNote(bends));
Assert.False(new CadText { SourceHandle = unrelated.Handle, Value = note.Value }.IsReplacedByBendNote(bends));
Assert.False(
new CadText
{
SourceHandle = unrelated.Handle,
Value = note.Value,
}.IsReplacedByBendNote(bends)
);
bends.Clear();
Assert.False(text.IsReplacedByBendNote(bends));
@@ -42,6 +60,8 @@ public class CadBendNoteTests
Assert.False(text.IsReplacedByBendNote(null));
Assert.False(text.IsReplacedByBendNote(new[] { new Bend { NoteText = text.Value } }));
Assert.False(text.IsReplacedByBendNote(new[] { new Bend { SourceNoteHandle = 42 } }));
Assert.False(new CadText().IsReplacedByBendNote(new[] { new Bend { NoteText = text.Value } }));
Assert.False(
new CadText().IsReplacedByBendNote(new[] { new Bend { NoteText = text.Value } })
);
}
}