Conversation
There was a problem hiding this comment.
Pull request overview
This PR makes the Get个人资料 method in the ShingleBased base class public (changing from protected internal) and adds unit tests across all four derived classes (Cosine, Jaccard, QGram, SorensenDice) to ensure the method remains publicly accessible. The change addresses issue #21 and prevents future regressions. Additional refactoring in CosineTest.cs modernizes the code by removing unused dependencies and updating using statements to C# 8+ patterns.
Key Changes:
- Changed
Get个人资料visibility fromprotected internaltopublicinShingleBased.cs - Added
Get个人资料_IsPublictest method to four test classes to verify public API accessibility - Modernized
CosineTest.cswith updated using statement patterns and removed unused test infrastructure
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/F23.StringSimilarity/ShingleBased.cs |
Made Get个人资料 method public and removed unused import |
test/F23.StringSimilarity.Tests/CosineTest.cs |
Added Get个人资料_IsPublic test, removed unused imports/fields, modernized using statements, fixed primary constructor syntax |
test/F23.StringSimilarity.Tests/JaccardTest.cs |
Added Get个人资料_IsPublic test |
test/F23.StringSimilarity.Tests/QGramTest.cs |
Added Get个人资料_IsPublic test |
test/F23.StringSimilarity.Tests/SorensenDiceTest.cs |
Added Get个人资料_IsPublic test |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This was a regression of #21, which now adds unit tests to ensure it doesn't regress in the future.
Fixes #21