kosi-libs / MocKMP

A mocking processor for Kotlin Multiplatform
https://kosi-libs.org/mockmp
MIT License
189 stars 12 forks source link

Helper class TestWithMocks verifyMethods use ArgConstraintBuilder instead of VerificationBuilder #28

Closed HylkeB closed 2 years ago

HylkeB commented 2 years ago

As the title says. I was trying to implement a verification that verifies an exception was thrown, but i couldnt find the appropriate method because i was using the verify method provided by the TestsWithMocks class. It can't find the threw method then because the block uses ArgConstraintBuilder as this scope, instead of VerificationBuilder.

I suppose its an easy fix. For now I use the mocker reference directly.