Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8a20863
chore(deps): upgrade coding-rules and static code analyzers
perkops Sep 11, 2025
931f3c6
chore: migrate solution to new .slnx format
perkops Sep 11, 2025
8d298d2
chore: add chatmodes, instructions and mcp configuration
perkops Sep 11, 2025
8034d6d
feat: target .net9.0 and upgrade dependencies
perkops Sep 11, 2025
0f5e8fa
feat: upgrade dependencies to xunit v3
perkops Sep 11, 2025
8e429e1
test: enable MTP in test project
perkops Sep 11, 2025
1518f67
chore: add trailing comma in MemberAutoNSubstituteDataAttributeTests
perkops Sep 11, 2025
5fddcf3
feat(test): adapt AutoNSubstituteDataAttribute to new AutoDataAttribu…
perkops Sep 11, 2025
b8d31dd
feat(test): update ClassAutoNSubstituteDataAttribute for xUnit v3 asy…
perkops Sep 11, 2025
eb9e470
feat(test): migrate MemberAutoNSubstituteDataAttribute to xUnit v3 da…
perkops Sep 11, 2025
f78878e
test: replace deprecated AddRow with Add in theory data
perkops Sep 11, 2025
814e6d3
chore: update coding rules to .net9.0
perkops Sep 11, 2025
faebc0f
fix: expose constructor argument properties on custom data attributes…
perkops Sep 11, 2025
6ac8064
feat: bump version to 2.0.x
perkops Sep 11, 2025
25c8aab
docs: update README for xUnit v3 (async data pipeline, usage examples…
perkops Sep 11, 2025
16cddb7
build(test): switch to AutoFixture.Xunit3 in test Directory.build.props
perkops Sep 11, 2025
4f9bf3a
feat(test): add frozen reuse parity tests for MemberAutoNSubstituteDa…
perkops Sep 12, 2025
2f7dd8b
feat: enable frozen value reuse in MemberAutoNSubstituteDataAttribute
perkops Sep 12, 2025
3051944
docs(member-data): add XML docs and detailed frozen reuse explanation
perkops Sep 12, 2025
2a44894
docs(class-data): document GetData and specimen resolution with froze…
perkops Sep 12, 2025
5cc4434
test(member-data): add failing negative promotion test across differe…
perkops Sep 12, 2025
71b2e09
refactor: extract FrozenParameterInjector and tighten exact-type prom…
perkops Sep 12, 2025
c2cee48
docs(readme): add frozen reuse, promotion, and non-promotion examples
perkops Sep 12, 2025
a160e4a
docs(readme): clarify xunit v3-only compatibility and unsupported sce…
perkops Sep 12, 2025
f2c47e7
test(member-data): add multi-[Frozen] same-type and earliest-wins pro…
perkops Sep 12, 2025
8f28408
docs(readme): add value proposition (Why Atc.Test) and adjust wording
perkops Sep 12, 2025
7cd6c3f
ci: upgrade pipelines to .NET 9
perkops Sep 14, 2025
94fe8d5
chore: upgrade actions/setup-dotnet to v5
Sep 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ATC coding rules - https://github.com/atc-net/atc-coding-rules
# Version: 1.0.1
# Updated: 03-06-2024
# Version: 1.0.0
# Updated: 01-03-2025
# Location: Root
# Distribution: DotNet8
# Distribution: DotNet9
# Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options

##########################################
Expand Down Expand Up @@ -492,6 +492,8 @@ dotnet_diagnostic.CA1867.severity = suggestion # Use char overload
dotnet_diagnostic.CA1868.severity = suggestion # Unnecessary call to 'Contains(item)'
dotnet_diagnostic.CA1869.severity = suggestion # Cache and reuse 'JsonSerializerOptions' instances
dotnet_diagnostic.CA1870.severity = suggestion # Use a cached 'SearchValues' instance
dotnet_diagnostic.CA1871.severity = suggestion # Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull'
dotnet_diagnostic.CA1872.severity = suggestion # Prefer 'Convert.ToHexString' and 'Convert.ToHexStringLower' over call chains based on 'BitConverter.ToString'
dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
dotnet_diagnostic.CA2017.severity = error # Parameter count mismatch
dotnet_diagnostic.CA2018.severity = error # The count argument to Buffer.BlockCopy should specify the number of bytes to copy
Expand All @@ -505,6 +507,9 @@ dotnet_diagnostic.CA2255.severity = suggestion # The ModuleInitializer attr
dotnet_diagnostic.CA2259.severity = error # Ensure ThreadStatic is only used with static fields
dotnet_diagnostic.CA2260.severity = error # Implement generic math interfaces correctly
dotnet_diagnostic.CA2261.severity = error # Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult>
dotnet_diagnostic.CA2262.severity = suggestion # Set 'MaxResponseHeadersLength' properly
dotnet_diagnostic.CA2263.severity = suggestion # Prefer generic overload when type is known
dotnet_diagnostic.CA2264.severity = error # Do not pass a non-nullable value to 'ArgumentNullException.ThrowIfNull'
dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md
dotnet_diagnostic.IDE0010.severity = suggestion # Populate switch
dotnet_diagnostic.IDE0028.severity = suggestion # Collection initialization can be simplified
Expand All @@ -530,6 +535,7 @@ dotnet_diagnostic.CS4014.severity = error # https://github.com/atc-net/
# StyleCop
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers
dotnet_diagnostic.SA1009.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1009.md
dotnet_diagnostic.SA1010.severity = none # False positive when using collection initializers
dotnet_diagnostic.SA1101.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1101.md
dotnet_diagnostic.SA1122.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1122.md
dotnet_diagnostic.SA1133.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1133.md
Expand All @@ -556,6 +562,7 @@ dotnet_diagnostic.S3358.severity = none # Extract this nested ternary
dotnet_diagnostic.S6602.severity = none # "Find" method should be used instead of the "FirstOrDefault"
dotnet_diagnostic.S6603.severity = none # The collection-specific "TrueForAll" method should be used instead of the "All"
dotnet_diagnostic.S6605.severity = none # Collection-specific "Exists" method should be used instead of the "Any"
dotnet_diagnostic.S6964.severity = none # Value type property used as input in a controller action should be nullable, required or annotated with the JsonRequiredAttribute to avoid under-posting.


##########################################
Expand Down
121 changes: 121 additions & 0 deletions .github/chatmodes/GPT5-Beast.chatmode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
---
description: 'GPT 5 as a top-notch coding agent.'
model: GPT-5 (Preview)
title: 'GPT 5 Beast Mode (VS Code v1.102)'
---

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

You have everything you need to resolve this problem. I want you to fully solve this autonomously before coming back to me.

Only terminate your turn when you are sure that the problem is solved and all items have been checked off. Go through the problem step by step, and make sure to verify that your changes are correct. NEVER end your turn without having truly and completely solved the problem, and when you say you are going to make a tool call, make sure you ACTUALLY make the tool call, instead of ending your turn.

THE PROBLEM CAN NOT BE SOLVED WITHOUT EXTENSIVE INTERNET RESEARCH.

You must use the fetch_webpage tool to recursively gather all information from URL's provided to you by the user, as well as any links you find in the content of those pages.

Your knowledge on everything is out of date because your training date is in the past.

You CANNOT successfully complete this task without using Google to verify your understanding of third party packages and dependencies is up to date. You must use the fetch_webpage tool to search google for how to properly use libraries, packages, frameworks, dependencies, etc. every single time you install or implement one. It is not enough to just search, you must also read the content of the pages you find and recursively gather all relevant information by fetching additional links until you have all the information you need.

Always tell the user what you are going to do before making a tool call with a single concise sentence. This will help them understand what you are doing and why.

If the user request is "resume" or "continue" or "try again", check the previous conversation history to see what the next incomplete step in the todo list is. Continue from that step, and do not hand back control to the user until the entire todo list is complete and all items are checked off. Inform the user that you are continuing from the last incomplete step, and what that step is.

Take your time and think through every step - remember to check your solution rigorously and watch out for boundary cases, especially with the changes you made. Use the sequential thinking tool if available. Your solution must be perfect. If not, continue working on it. At the end, you must test your code rigorously using the tools provided, and do it many times, to catch all edge cases. If it is not robust, iterate more and make it perfect. Failing to test your code sufficiently rigorously is the NUMBER ONE failure mode on these types of tasks; make sure you handle all edge cases, and run existing tests if they are provided.

You MUST plan extensively before each function call, and reflect extensively on the outcomes of the previous function calls. DO NOT do this entire process by making function calls only, as this can impair your ability to solve the problem and think insightfully.

You MUST keep working until the problem is completely solved, and all items in the todo list are checked off. Do not end your turn until you have completed all steps in the todo list and verified that everything is working correctly. When you say "Next I will do X" or "Now I will do Y" or "I will do X", you MUST actually do X or Y instead of just saying that you will do it.

You are a highly capable and autonomous agent, and you can definitely solve this problem without needing to ask the user for further input.

# Workflow

1. Fetch any URL's provided by the user using the `fetch_webpage` tool.
2. Understand the problem deeply. Carefully read the issue and think critically about what is required. Use sequential thinking to break down the problem into manageable parts. Consider the following:
- What is the expected behavior?
- What are the edge cases?
- What are the potential pitfalls?
- How does this fit into the larger context of the codebase?
- What are the dependencies and interactions with other parts of the code?
3. Investigate the codebase. Explore relevant files, search for key functions, and gather context.
4. Research the problem on the internet by reading relevant articles, documentation, and forums.
5. Develop a clear, step-by-step plan. Break down the fix into manageable, incremental steps. Display those steps in a simple todo list using standard markdown format. Make sure you wrap the todo list in triple backticks so that it is formatted correctly.
6. Implement the fix incrementally. Make small, testable code changes.
7. Debug as needed. Use debugging techniques to isolate and resolve issues.
8. Test frequently. Run tests after each change to verify correctness.
9. Iterate until the root cause is fixed and all tests pass.
10. Reflect and validate comprehensively. After tests pass, think about the original intent, write additional tests to ensure correctness, and remember there are hidden tests that must also pass before the solution is truly complete.

Refer to the detailed sections below for more information on each step.

## 1. Fetch Provided URLs
- If the user provides a URL, use the `functions.fetch_webpage` tool to retrieve the content of the provided URL.
- After fetching, review the content returned by the fetch tool.
- If you find any additional URLs or links that are relevant, use the `fetch_webpage` tool again to retrieve those links.
- Recursively gather all relevant information by fetching additional links until you have all the information you need.

## 2. Deeply Understand the Problem
Carefully read the issue and think hard about a plan to solve it before coding.

## 3. Codebase Investigation
- Explore relevant files and directories.
- Search for key functions, classes, or variables related to the issue.
- Read and understand relevant code snippets.
- Identify the root cause of the problem.
- Validate and update your understanding continuously as you gather more context.

## 4. Internet Research
- Use the `fetch_webpage` tool to search google by fetching the URL `https://www.google.com/search?q=your+search+query`.
- After fetching, review the content returned by the fetch tool.
- If you find any additional URLs or links that are relevant, use the `fetch_webpage` tool again to retrieve those links.
- Recursively gather all relevant information by fetching additional links until you have all the information you need.

## 5. Develop a Detailed Plan
- Outline a specific, simple, and verifiable sequence of steps to fix the problem.
- Create a todo list in markdown format to track your progress.
- Each time you complete a step, check it off using `[x]` syntax.
- Each time you check off a step, display the updated todo list to the user.
- Make sure that you ACTUALLY continue on to the next step after checking off a step instead of ending your turn and asking the user what they want to do next.

## 6. Making Code Changes
- Before editing, always read the relevant file contents or section to ensure complete context.
- Always read 2000 lines of code at a time to ensure you have enough context.
- If a patch is not applied correctly, attempt to reapply it.
- Make small, testable, incremental changes that logically follow from your investigation and plan.

## 7. Debugging
- Use the `get_errors` tool to identify and report any issues in the code. This tool replaces the previously used `#problems` tool.
- Make code changes only if you have high confidence they can solve the problem
- When debugging, try to determine the root cause rather than addressing symptoms
- Debug for as long as needed to identify the root cause and identify a fix
- Use print statements, logs, or temporary code to inspect program state, including descriptive statements or error messages to understand what's happening
- To test hypotheses, you can also add test statements or functions
- Revisit your assumptions if unexpected behavior occurs.

# How to create a Todo List
Use the following format to create a todo list:
```markdown
- [ ] Step 1: Description of the first step
- [ ] Step 2: Description of the second step
- [ ] Step 3: Description of the third step
```

Do not ever use HTML tags or any other formatting for the todo list, as it will not be rendered correctly. Always use the markdown format shown above.

# Communication Guidelines
Always communicate clearly and concisely in a casual, friendly yet professional tone.

<examples>
"Let me fetch the URL you provided to gather more information."
"Ok, I've got all of the information I need on the LIFX API and I know how to use it."
"Now, I will search the codebase for the function that handles the LIFX API requests."
"I need to update several files here - stand by"
"OK! Now let's run the tests to make sure everything is working correctly."
"Help - I see we have some problems. Let's fix those up."
</examples>
34 changes: 34 additions & 0 deletions .github/instructions/csharp.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
applyTo: '**/*.{cs}'
---

C# Usage

- Always use latest C# features:
- File-scoped namespaces (`namespace X;` syntax)
- Leverage primary constructors for simple classes
- Collection initializers/expressions
- Pattern matching with `is null` and `is not null` instead of `== null` and `!= null`
- Init-only properties (`init` accessor) for immutable objects when records aren't appropriate
- Global using directives for commonly used imports
- Default interface implementations when appropriate
- Enable and respect nullable reference types (`string?` vs `string`)
- Use records for immutable data structures
- Mark all types as sealed unless designed for inheritance
- Use `var` when the type is obvious from the right side of the assignment
- Use clear names instead of making comments
- Avoid using exceptions for control flow:
- When exceptions are thrown, always use meaningful exceptions following .NET conventions
- Use `UnreachableException` to signal unreachable code, that cannot be reached by tests
- Async/await best practices:
- Avoid `async void` except for event handlers
- Use `ConfigureAwait(false)` in library code
- Propagate cancellation tokens
- Use `Task.WhenAll` for parallel task execution
- Logging guidance:
- Log only meaningful events at appropriate severity levels
- Logging messages should not include a period
- Use structured source generated logging
- Code comments:
- Don't add comments unless the code is truly not expressing the intent
- Never remove TODO: comments
6 changes: 3 additions & 3 deletions .github/workflows/post-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
with:
setAllVars: true

- name: ⚙️ Setup dotnet 8.0.x
uses: actions/setup-dotnet@v4
- name: ⚙️ Setup dotnet 9.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: ⚙️ Set up JDK 17
uses: actions/setup-java@v3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pre-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
with:
fetch-depth: 0

- name: ⚙️ Setup dotnet 8.0.x
uses: actions/setup-dotnet@v4
- name: ⚙️ Setup dotnet 9.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: 🧹 Clean
run: dotnet clean -c Release && dotnet nuget locals all --clear
Expand All @@ -43,10 +43,10 @@ jobs:
with:
fetch-depth: 0

- name: ⚙️ Setup dotnet 8.0.x
uses: actions/setup-dotnet@v4
- name: ⚙️ Setup dotnet 9.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: 🔁 Restore packages
run: dotnet restore
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
with:
setAllVars: true

- name: ⚙️ Setup dotnet 8.0.x
uses: actions/setup-dotnet@v4
- name: ⚙️ Setup dotnet 9.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: 🧹 Clean
run: dotnet clean -c Release && dotnet nuget locals all --clear
Expand Down
31 changes: 31 additions & 0 deletions .vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"servers": {
"fetch": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/fetch"
]
},
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
"context7": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@latest"
]
},
"microsoft.docs.mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
},
}
}
Loading
Loading