VerifyTests/Verify

Fields `beforeVerify` and `afterVerify` Not Properly Handled in `VerifySettings`

Closed this issue · 0 comments

makp0 commented

Describe the Bug

The beforeVerify and afterVerify settings in VerifySettings are set by OnVerify:

public void OnVerify(Action before, Action after)

However, they are missing in two critical places:

  1. Copy Constructor:
    They are not copied to CurrentSettings in the copy constructor.

    public VerifySettings(VerifySettings? settings)

  2. Reset Method:
    They are not reset during the reset operation.

    internal static void Reset()


Minimal Repro

You can reproduce the issue using the example mentioned in the documentation

public Task OnCallbacks()