Skip to content

docs: document protected member support#432

Merged
vbreuss merged 2 commits intomainfrom
topic/document-protected-members
Jan 31, 2026
Merged

docs: document protected member support#432
vbreuss merged 2 commits intomainfrom
topic/document-protected-members

Conversation

@vbreuss
Copy link
Contributor

@vbreuss vbreuss commented Jan 31, 2026

This PR adds documentation for Mockolate's protected member support feature. The changes document how to set up and verify protected virtual members (methods, properties, and indexers) on class mocks using the .Protected accessor.

Key Changes:

  • Added comprehensive documentation section in README.md explaining protected member setup and verification
  • Created new dedicated documentation page for protected members in the advanced features section
  • Updated solution file to include the new documentation files

@vbreuss vbreuss self-assigned this Jan 31, 2026
@vbreuss vbreuss added the documentation Improvements or additions to documentation label Jan 31, 2026
Copilot AI review requested due to automatic review settings January 31, 2026 07:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for Mockolate's protected member support feature. The changes document how to set up and verify protected virtual members (methods, properties, and indexers) on class mocks using the .Protected accessor.

Changes:

  • Added comprehensive documentation section in README.md explaining protected member setup and verification
  • Created new dedicated documentation page for protected members in the advanced features section
  • Updated solution file to include the new documentation files

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.

File Description
README.md Added "Working with protected members" section with examples of setup and verification for protected methods, properties, and indexers
Mockolate.slnx Added references to new documentation files for protected members and callback features
Docs/pages/advanced-features/01-working-with-protected-members.md Created dedicated documentation page covering protected member functionality with detailed examples

@vbreuss vbreuss enabled auto-merge (squash) January 31, 2026 07:21
@vbreuss vbreuss disabled auto-merge January 31, 2026 07:22
@vbreuss vbreuss merged commit 6cdbd71 into main Jan 31, 2026
8 checks passed
@vbreuss vbreuss deleted the topic/document-protected-members branch January 31, 2026 07:22
@sonarqubecloud
Copy link

@github-actions
Copy link

github-actions bot commented Jan 31, 2026

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.71GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.102
[Host] : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method Mean Error StdDev Gen0 Gen1 Allocated
Simple_Mockolate 1.631 μs 0.0052 μs 0.0044 μs 0.2270 - 3.73 KB
Simple_Moq 173.603 μs 0.4801 μs 0.4256 μs 0.4883 - 14.55 KB
Simple_NSubstitute 5.424 μs 0.0117 μs 0.0109 μs 0.5569 0.0076 9.14 KB
Simple_FakeItEasy 6.312 μs 0.0230 μs 0.0216 μs 0.4959 - 8.11 KB

@github-actions
Copy link

This is addressed in release v1.1.0.

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

Labels

documentation Improvements or additions to documentation state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document protected member support

1 participant

Comments