diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 7dc4f94875..5997d9aca1 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -12,7 +12,7 @@ ML.NET is a cross-platform, open-source machine learning framework for .NET. It - .NET SDK version selected by `global.json` - Build system: Microsoft Arcade SDK (`eng/common/`) -- Test framework: xUnit (with `AwesomeAssertions`, `Xunit.Combinatorial`) +- Test framework: xUnit (with `Xunit.Combinatorial`) - Native dependencies: MKL, OpenMP, libmf, oneDNN - Major dependencies: TorchSharp, ONNX Runtime, TensorFlow, LightGBM - Central package management: `Directory.Packages.props` @@ -136,7 +136,7 @@ public class MyFeatureTests : TestDataPipeBase Name test classes as `{Feature}Tests`, test methods as PascalCase descriptive names (e.g., `RandomizedPcaTrainerBaselineTest`). Do not use `Test_` prefixes or `_Should_` patterns. -Use `Assert.*` (xUnit) or `AwesomeAssertions` for fluent assertions. Do not use `Assert.That` (NUnit style). +Use the built-in `Assert.*` (xUnit) assertions. Do not use `Assert.That` (NUnit style) or additional assertion libraries. Test data: use `Microsoft.ML.TestDatabases` package or files in `test/data/`, referenced via `GetDataPath("filename")` from the base class. Baseline output comparison uses files in `test/BaselineOutput/`. Update baselines carefully since they are the source of truth for output format stability. diff --git a/Directory.Packages.props b/Directory.Packages.props index 8a582c516b..72046ff675 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -69,7 +69,6 @@ - diff --git a/docs/specs/ML.Net Sweepable API.md b/docs/specs/ML.Net Sweepable API.md index fe0a3e2be1..528ef51460 100644 --- a/docs/specs/ML.Net Sweepable API.md +++ b/docs/specs/ML.Net Sweepable API.md @@ -7,6 +7,8 @@ Search space defines a range of hyper-parameter for tuner to search from. Sweepa via attribute ```csharp +using Xunit; + public class Option { [Range(2, 32768, init: 2, logBase: true)] @@ -31,17 +33,19 @@ var ss = new SearchSpace