Repository navigation
Testprojekt auf MSTest 3.11.0 aktualisiert - #3
Merged
Merged
Conversation
Erhöht die MSTest-Paketversion in GeometryTests.vbproj von 3.9.0 auf 3.9.3.
Aktualisiert GeometryTests auf MSTest 3.11.0 und ersetzt die bisherigen Assert.ThrowsException-/ExpectedException-Prüfungen durch Assert.ThrowsExactly, um exakt ArgumentException zu prüfen.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Die Assertion-Migration entspricht den tatsächlich ausgelösten Exception-Typen und ist vollständig umgesetzt.
0 open findings
What changed in this PR
Modernisiert die MSTest-Testbasis und verschärft die Prüfung erwarteter ArgumentException-Typen.
Changes:
- Aktualisiert MSTest von 3.9.0 auf 3.11.0.
- Migriert Guard-Tests zu
Assert.ThrowsExactly. - Ersetzt den attributbasierten Exception-Test für Kreise.
| File | Description |
|---|---|
GeometryTests/GeometryTests.vbproj |
Aktualisiert MSTest auf 3.11.0. |
TwoDimensional/TriangleTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/TrapezoidTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/SquareTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/RhombusTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/RegularPolygonTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/PolygonTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/ParallelogramTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/KiteTests.vb |
Prüft Guard-Ausnahmen exakt. |
TwoDimensional/CircleTests.vb |
Ersetzt ExpectedException durch eine exakte Assertion. |
ThreeDimensional/SphereTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/PyramidTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/PrismTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/FrustumTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/CylinderTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/CuboidTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/CubeTests.vb |
Prüft Guard-Ausnahmen exakt. |
ThreeDimensional/ConeTests.vb |
Prüft Guard-Ausnahmen exakt. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Classification
Test- und Wartungsänderung zur Modernisierung der Exception-Prüfungen und Anpassung an MSTest 3.11.0.
PR Summary
Die Testbasis wurde auf MSTest 3.11.0 aktualisiert und die Guard-Tests in den Zwei- und Dreidimensional-Tests auf exakte Exception-Typprüfung umgestellt. Dadurch wird nun konsequent
ArgumentExceptionstatt kompatibler abgeleiteter Typen validiert.GeometryTests.vbproj: Aktualisierung der MSTest-Abhängigkeit auf 3.11.0Assert.ThrowsException/ExpectedExceptionaufAssert.ThrowsExactlyAssert.ThrowsException/ExpectedExceptionaufAssert.ThrowsExactlyArgumentException