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.
This PR contains the following updates:
4.14.5
->4.20.70
Release Notes
moq/moq (Moq)
v4.20.70
Full Changelog
🔨 Other:
🔀 Merged:
v4.20.69
v4.20.2
🐛 Fixed bugs
v4.20.1
✨ Implemented enhancements
v4.20.0
✨ Implemented enhancements
Mock<T>.RaiseAsync
method for raising "async" events, i.e. events that use aFunc<..., Task>
orFunc<..., ValueTask>
delegate. (@stakx, #1313)setup.Verifiable(Times times, [string failMessage])
method to specify the expected number of calls upfront.mock.Verify[All]
can then be used to check whether the setup was called that many times. The upper bound (maximum allowed number of calls) will be checked right away, i.e. whenever a setup gets called. (@stakx, #1319)🔨 Other
ThrowsAsync
for non-genericValueTask
by @johnthcall in https://github.com/moq/moq/pull/1235mock.Protected().Verify<T>()
method overload by @stakx in https://github.com/moq/moq/pull/1325Fixed
v4.18.4
Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
IndexOutOfRangeException
#1252🔨 Other:
MissingMethodException
when using new C# language features (in
parameters,init
-only setters, etc.) with generic methods, or with members in generic types #1148🔀 Merged:
v4.18.3
Fixed
SetupAllProperties
crashes when invoked on aMock<T>
subclass (@mo-russo, #1278)v4.18.2
Changed
Castle.Core
(DynamicProxy) from version 5.0.0 to 5.1.0 (@stakx, #1275)System.Threading.Tasks.Extensions
fornetstandard2.1
andnet6.0
(@tibel, #1274)Fixed
.Raises()
with redeclared event (@howcheng, #1175)MissingMethodException
when mocking interface with sealed default implementation (@pjquirk, #1209)TypeLoadException
on mock when a record has a base record on .NET 6 (@tgrieger-sf, #1273)v4.18.1
Fixed
It.Is
predicates in setup expressions after updating from 4.13.1 to 4.16.1 (@b3go, #1217)SetupProperty
where Moq fails to match a property accessor implementation against its definition in an interface (@Naxemar, #1248).Result
vs without (@cyungmann, #1253)v4.18.0
Full Changelog
🐛 Fixed bugs:
CallBase
andDefaultValue.Mock
configured #1249🔨 Other:
🔀 Merged:
MethodExpectation.CreateFrom(Invocation)
#1251 (@stakx)v4.17.2
Full Changelog
🐛 Fixed bugs:
🔨 Other:
success
condition parameter inWhen
. #1237🔀 Merged:
SetupProperty
work with recursive expressions again #1241 (@stakx)v4.17.1
Full Changelog
🐛 Fixed bugs:
Mock.Of
#1066🔨 Other:
🔀 Merged:
SetupAllProperties
#1234 (@stakx)v4.16.1
Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
🔨 Other:
.Result
property #1132🔀 Merged:
Returns(InvocationFunc)
doesn't throwTargetInvocationException
#1141 (@stakx).Result
setups #1133 (@stakx)AmbiguousMatchException
when interface has indexer besides property #1131 (@mujdatdinc).CallBase
for default interface implementations #1130 (@stakx)v4.16.0
Full Changelog
✨ Implemented enhancements:
Verify
#1117Await(...)
operator #1007.Result
of (value) tasks #1126 (@stakx)🐛 Fixed bugs:
🔨 Other:
🔀 Merged:
IAwaitableFactory
) #1125 (@stakx).Verifiable()
once again #1121 (@stakx)v4.15.2
Full Changelog
🔨 Other:
🔀 Merged:
v4.14.7
Full Changelog
✨ Implemented enhancements:
🐛 Fixed bugs:
🔨 Other:
mocked.Equals(mocked)
returns false by default if mocked class overridesEquals
#802v4.14.6
Full Changelog
🐛 Fixed bugs:
🔨 Other:
Microsoft.Build.Tasks.Git.LocateRepository
task failed unexpectedly." #1060🔀 Merged:
Mock.Of
#1061 (@stakx)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.