When(...).Throws gives a CouldNotSetReturnDueToNoLastCallException (#803) #164
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-dotnet@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L88
'WhenCalled<ISomething>.Throws<TException>()' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L116
'WhenCalled<ISomething>.Throws(Exception)' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L144
'WhenCalled<ISomething>.Throws(Func<CallInfo, Exception>)' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/EventRaising.cs#L339
Parameter 'arg' is unread.
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L88
'WhenCalled<ISomething>.Throws<TException>()' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L116
'WhenCalled<ISomething>.Throws(Exception)' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L144
'WhenCalled<ISomething>.Throws(Func<CallInfo, Exception>)' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/EventRaising.cs#L339
Parameter 'arg' is unread.
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L88
'WhenCalled<ISomething>.Throws<TException>()' is obsolete: 'The recommended method to use is Throw().'
|
Build:
tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs#L116
'WhenCalled<ISomething>.Throws(Exception)' is obsolete: 'The recommended method to use is Throw().'
|
Loading