GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [repo-assist] test: Add unit tests for BookToolQueryService by github-actions[bot] · Pull Request #1404 · IntelliTect/EssentialCSharp.Web

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

BookToolQueryService backs several MCP tools used by the AI chat integration (GetChapterList, GetChapterSections, GetDirectContentUrl, GetNavigationContext, GetChapterSummary) but had no direct unit test coverage. This PR adds a focused test suite covering the service's public API.

Changes

  • Added EssentialCSharp.Web.Tests/BookToolQueryServiceTests.cs with 12 tests using Moq (matching the existing repo convention for services with mockable dependencies), covering:
    • Table-of-contents mapping and URL construction in GetChapterList
    • Section ordering and McpException on unknown chapter in GetChapterSections
    • Blank/unknown section key and success paths in GetDirectContentUrl
    • Previous/next/parent resolution in GetNavigationContext
    • Chapter-scoped guideline filtering and unknown-chapter handling in GetChapterSummary

No production code was changed.

Test Status

  • dotnet build EssentialCSharp.Web.Tests --configuration Release — ✅ succeeded, 0 warnings/errors
  • dotnet test EssentialCSharp.Web.Tests --configuration Release --no-build — 159/161 passed. The 2 pre-existing failures (CaptchaService_Verify_Success, KnownBreachedPassword_IsDetected) are unrelated integration tests that call external network services (hCaptcha, HaveIBeenPwned) unreachable from this sandboxed environment; they fail identically on main without this change.
  • dotnet format EssentialCSharp.Web.Tests --verify-no-changes — no issues reported for the new file (pre-existing formatting/naming findings in other files are unrelated to this change).

This is an automated contribution from Repo Assist. Please review before merging.

Warning

Firewall blocked 2 domains

The following domains were blocked by the firewall during workflow execution:

  • api.hcaptcha.com
  • api.pwnedpasswords.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.hcaptcha.com"
    - "api.pwnedpasswords.com"

See Network Configuration for more information.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@4bc8419fad05e6b032741cbfd189986700bcf71c

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions
test: Add unit tests for BookToolQueryService
4b69c0c
Adds coverage for the MCP book-tool query service, which previously had
no direct unit tests despite backing several MCP tools
(GetChapterList, GetChapterSections, GetDirectContentUrl,
GetNavigationContext, GetChapterSummary). Tests cover:
- Successful chapter listing / section lookups with ordering
- McpException thrown for unknown chapters and blank/unknown section keys
- Navigation context previous/next/parent resolution
- Guideline filtering by chapter number in chapter summaries

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added automation repo-assist labels Sep 24, 2026
Copilot started work on behalf of BenjaminMichaelis September 24, 2026 07:20
View session
Copilot stopped work on behalf of BenjaminMichaelis due to an error September 24, 2026 07:23
The session was cancelled by the user.
Copilot AI requested a review from BenjaminMichaelis September 24, 2026 07:23
@BenjaminMichaelis

BenjaminMichaelis commented Sep 24, 2026

Copy link
Copy Markdown
Member

/repo-assist make sure the tests are DRY and using latest and best TUnit syntax and we should be using ! unecessarily like we are now

github-actions[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

Repo Assist is processing issue comment, see workflow run...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 24, 2026
[repo-assist] Monthly Activity 2026-09 #1406
Closed
[repo-assist] Monthly Activity 2026-10 #1447
Open
@github-actions
test: apply feedback to BookToolQueryService tests
a02ce6f
Co-authored-by: Copilot <[email protected]>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Commit pushed: a02ce6f

Generated by 🌈 Repo Assist, see workflow run. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@BenjaminMichaelis BenjaminMichaelis Awaiting requested review from BenjaminMichaelis

At least 1 approving review is required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automation repo-assist

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@BenjaminMichaelis
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.