Files
speckle-sharp-sdk/.github/copilot-instructions.md
Adam Hathcock 1039e75d0c Calculate closures correctly (#309)
* Maybe really fixes closures

* fornat

* add ai generated tests

* fix tests

* fix tests

* added test with correct number of closures?

* closures are self contained.  don't increment on attached properties

* format

* MergeClosure should reuse if exists, not just set

* add not null on a method
2025-05-27 14:05:10 +01:00

555 B

Coding standards, domain knowledge, and preferences that AI should follow

C# Coding Standards

  • Use the csharpier formatter for formatting C# code.
  • Use the .editorconfig file for code style settings.
  • Always use var when the type is obvious from the right side of the assignment.
  • Always add braces for if, else, for, foreach, while, and do statements, even if they are single-line statements.

Testing

  • Use xUnit for unit testing.
  • Use FluentAssertions for assertions in tests.
  • Use Moq for mocking dependencies in tests.