Rename the misnamed NUnit VerifyBase.ThrowsValueTask<T> overload

Merged
SI
3mo ago
+1-1

VerifyBase declared ThrowsValueTask(Func<Task>), which forwards to Verifier.ThrowsTask. The name was a copy paste error: the static API and MSTest's VerifyBase both call this ThrowsTask.

So NUnit's VerifyBase had no generic ThrowsTask at all, and ThrowsValueTask was overloaded across unrelated Task and ValueTask signatures. Code moved between the static and instance APIs, or from MSTest, did not compile against the name it expected.

Renamed rather than kept alongside an obsolete forwarder, since a forwarder would preserve the overload confusion that is the actual problem here. Callers of the old name change to ThrowsTask, which is the method they were already reaching.