Skip to content

Commit e1ea008

Browse files
Copilotstephentoub
andauthored
docs: prohibit InternalsVisibleTo in .NET test guidance (#804)
* Initial plan * Add .NET InternalsVisibleTo note to copilot instructions Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 5a41532 commit e1ea008

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- Python: `cd python && uv pip install -e ".[dev]"``uv run pytest` (E2E tests use the test harness)
2626
- Go: `cd go && go test ./...`
2727
- .NET: `cd dotnet && dotnet test test/GitHub.Copilot.SDK.Test.csproj`
28+
- **.NET testing note:** Never add `InternalsVisibleTo` to any project file when writing tests. Tests must only access public APIs.
2829

2930
## Testing & E2E tips ⚙️
3031

0 commit comments

Comments
 (0)