Skip to content

Bump the test-tooling group with 7 updates - #3

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/tests/RazorLight.Precompile.Tests/test-tooling-7d4e82bce1
Closed

Bump the test-tooling group with 7 updates#3
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/tests/RazorLight.Precompile.Tests/test-tooling-7d4e82bce1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 6, 2026

Copy link
Copy Markdown

Updated Microsoft.NET.Test.Sdk from 16.5.0 to 17.3.3.

Release notes

Sourced from Microsoft.NET.Test.Sdk's releases.

17.3.3

See the release notes here.

17.3.2

See the release notes here.

17.3.1

See the release notes here.

17.3.0

See the release notes here.

17.3.0-preview-20220612-01

See the release notes here.

17.3.0-preview-20220530-08

See the release notes here.

17.3.0-preview-20220426-02

See the release notes here.

17.2.1

See the release notes here.

17.2.0

See the release notes here.

17.2.0-preview-20220401-08

See the release notes here.

17.2.0-preview-20220401-07

See the release notes here.

17.2.0-preview-20220301-01

See the release notes here.

17.2.0-preview-20220131-20

See the release notes here.

17.1.0

See the release notes here.

17.1.0-release-20220113-05

See the release notes here.

17.1.0-preview-20211130-02

See the release notes here.

17.1.0-preview-20211109-03

See the release notes here.

17.0.2

See the release notes here.

17.0.0

See the release notes here.

16.11.0

See the release notes here.

16.10.0

See the release notes here.

16.10.0-release-20210429-01

See the release notes here.

16.10.0-release-20210422-02

See the release notes here.

16.10.0-release-20210330-02

See the release notes here.

16.10.0-release-20210329-03

See the release notes here.

16.10.0-preview-20210219-03

See the release notes here.

16.9.4

See the release notes here.

16.9.1

See the release notes here.

16.9.0-preview-20210127-04

See the release notes here.

16.9.0-preview-20210106-01

See the release notes here.

16.9.0-preview-20201123-03

See the release notes here.


16.9.0-preview-20201020-06

See the release notes here.


16.9.0-preview-20201020-06

Issue Fixed

  • Enable Fakes Datacollector settings to be added in design mode #​2586
  • Fix blame parameter, warning, and add all testhosts to be ngend #​2579
  • Add netcoreapp1.0 support to Microsoft.TestPlatform.TestHost NuGet #​2569
  • Use bitness from process or OS #​2571
  • Restore netcoreapp1.0 support for testhost #​2554
  • Get symbols of DiaSymReader from externals #​2560
  • Do not force .NET4.5 in case legacy test settings are provided #​2545
  • Simplify package references #​2559
  • Enable default compile items for Microsoft.TestPlatform.PlatformAbstractions #​2556
  • Avoid logging >Task returned false but did not log an error.< #​2557
  • Fixed code coverage compatibility issue #​2527
  • Add environment variables to enable MacOS dump
  • Adding test run attachments processing #​2463

See full log here

Drops

16.8.3

See the release notes here.

16.8.0

See the release notes here.

16.8.0-preview-20200921-01

See the release notes here.

16.8.0-preview-20200812-03

See the release notes here.

16.8.0-preview-20200806-02

See the release notes here.

16.7.1

See the release notes here

16.7.0

See the release notes here.

16.7.0-preview-20200519-01

See the release notes here.

16.7.0-preview-20200428-01

See the release notes here.

16.6.1

See the release notes here.

16.6.0

✔ 16.6.1 was released, use that instead.

🔥 VSTest release 16.6.0 has a major bug in Fakes in vstest.console. The 16.6.0 packages are unlisted from nuget.org, with the exception of Microsoft.NET.Test.SDK and it's dependencies which are not impacted by this problem.
Please see: microsoft/vstest#2408

See the release notes here.

16.6.0-preview-20200318-01

See the release notes here.

16.6.0-preview-20200310-03

See the release notes here.

16.6.0-preview-20200309-01

See the release notes here.

16.6.0-preview-20200226-03

See the release notes here.

Commits viewable in compare view.

Updated Microsoft.NET.Test.Sdk from 17.0.0 to 17.3.3.

Release notes

Sourced from Microsoft.NET.Test.Sdk's releases.

17.3.3

See the release notes here.

17.3.2

See the release notes here.

17.3.1

See the release notes here.

17.3.0

See the release notes here.

17.3.0-preview-20220612-01

See the release notes here.

17.3.0-preview-20220530-08

See the release notes here.

17.3.0-preview-20220426-02

See the release notes here.

17.2.1

See the release notes here.

17.2.0

See the release notes here.

17.2.0-preview-20220401-08

See the release notes here.

17.2.0-preview-20220401-07

See the release notes here.

17.2.0-preview-20220301-01

See the release notes here.

17.2.0-preview-20220131-20

See the release notes here.

17.1.0

See the release notes here.

17.1.0-release-20220113-05

See the release notes here.

17.1.0-preview-20211130-02

See the release notes here.

17.1.0-preview-20211109-03

See the release notes here.

17.0.2

See the release notes here.

Commits viewable in compare view.

Updated Moq from 4.7.99 to 4.20.72.

Release notes

Sourced from Moq's releases.

4.20.72

What's Changed

🔨 Other

Full Changelog: devlooped/moq@v4.20.71...v4.20.72

4.20.71

What's Changed

🔨 Other

New Contributors

Full Changelog: devlooped/moq@v4.20.70...v4.20.71

4.20.70

What's Changed

🔨 Other

New Contributors

Full Changelog: devlooped/moq@v4.20.69...v4.20.70

4.20.69

Let's make it more memorable when Moq became "safe" again.

What's Changed

4.20.2

What's Changed

🐛 Fixed bugs

NOTE: in addition, there were potential privacy issues raised with regards to the SHA256 hashing of
user' email to check for sponsorship, so it won't be coming back until that's properly addressed

Full Changelog: moq/moq.spikes@v4.20.1...v4.20.2

4.20.1

What's Changed

✨ Implemented enhancements

  • Add Sponsor button to package readme 💜

Full Changelog: moq/moq.spikes@v4.20.0...v4.20.1

4.20.0

What's Changed

✨ Implemented enhancements

🔨 Other

New Contributors

Full Changelog: moq/moq.spikes@v4.18.4...v4.20.0

4.20.0-rc

What's Changed

🔨 Other

Full Changelog: moq/moq.spikes@v4.20.0-beta...v4.20.0-rc

4.20.0-beta

What's Changed

✨ Implemented enhancements

🔨 Other

New Contributors

Full Changelog: moq/moq.spikes@v4.18.4...v4.20.0-beta

4.20.0-alpha

What's Changed

✨ Implemented enhancements

🔨 Other

New Contributors

Full Changelog: moq/moq.spikes@v4.18.4...v4.20.0-alpha

4.18.4

Changed

  • Update package reference to Castle.Core (DynamicProxy) from version 5.1.0 to 5.1.1 (@​stakx, #​1317)

4.18.3

Fixed

  • SetupAllProperties crashes when invoked on a Mock<T> subclass (@​mo-russo, #​1278)

4.18.2

Changed

  • Update package reference to Castle.Core (DynamicProxy) from version 5.0.0 to 5.1.0 (@​stakx, #​1275)
  • Removed dependency on System.Threading.Tasks.Extensions for netstandard2.1 and net6.0 (@​tibel, #​1274)

Fixed

  • "Expression is not an event add" when using .Raises() with redeclared event (@​howcheng, #​1175)
  • MissingMethodException when mocking interface with sealed default implementation (@​pjquirk, #​1209)
  • Throws TypeLoadException on mock when a record has a base record on .NET 6 (@​tgrieger-sf, #​1273)

4.18.1

Fixed

  • Regression with lazy evaluation of It.Is predicates in setup expressions after updating from 4.13.1 to 4.16.1 (@​b3go, #​1217)
  • Regression with SetupProperty where Moq fails to match a property accessor implementation against its definition in an interface (@​Naxemar, #​1248)
  • Difference in behavior when mocking async method using .Result vs without (@​cyungmann, #​1253)

4.18.0

New major version of DynamicProxy (you may get better performance!), so please update with care.

Changed

  • Update package reference to Castle.Core (DynamicProxy) from version 4.4.1 to 5.0.0 (@​stakx, #​1257)
  • Adjusted our target frameworks to match DynamicProxy's (see their discussion about which frameworks to target):
    • minimum .NET Framework version raised from net45 to net462
    • additional net6.0 TFM

Fixed

  • Can't set up "private protected" properties (@​RobSiklos, #​1170)
  • Using [...] an old version of System.Net.Http which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" (@​sidseter, #​1219)
  • Failure when invoking a method with by-ref parameter & mockable return type on a mock with CallBase and DefaultValue.Mock configured (@​IanKemp, #​1249)

4.17.2

Fixed

  • Regression: Property stubs not working on sub mock (@​aaronburro, #​1240)

4.17.1

Added

  • SetupSet, VerifySet methods for mock.Protected().As<>() (@​tonyhallett, #​1165)
  • New Throws method overloads that allow specifying a function with or without parameters, to provide an exception, for example .Throws(() => new InvalidOperationException())
    and Setup(x => x.GetFooAsync(It.IsAny<string>()).Result).Throws((string s) => new InvalidOperationException(s)). (@​adam-knights, #​1191)

Changed

  • Update package reference to Castle.Core (DynamicProxy) from version 4.4.0 to 4.4.1 (@​stakx, #​1233)

Fixed

  • The guard against unmatchable matchers (added in #​900) was too strict; relaxed it to enable an alternative user-code shorthand _ for It.IsAny<>() (@​adamfk, #​1199)
  • mock.Protected() setup methods fail when argument is of type Expression (@​tonyhallett, #​1189)
  • Parameter is invalid in Protected().SetupSet() ... VerifySet (@​tonyhallett, #​1186)
  • Virtual properties and automocking not working for mock.Protected().As<>() (@​tonyhallett, #​1185)
  • Issue mocking VB.NET class with overloaded property/indexer in base class (@​myurashchyk, #​1153)
  • Equivalent arrays don't test equal when returned from a method, making Verify fail when it should not (@​evilc0, #​1225)
  • Property setups are ignored on mocks instantiated using Mock.Of (@​stakx, #​1066)
  • SetupAllProperties causes mocks to become race-prone (@​estrizhok, #​1231)

4.16.1

Added

  • CallBase can now be used with interface methods that have a default interface implementation. It will call the most specific override. (@​stakx, #​1130)

Changed

  • Improved error message formatting of It.Is lambda expressions that capture local variables. (@​bfriesen, #​1140)

Fixed

  • AmbiguousMatchException raised when interface has property indexer besides property in VB. (@​mujdatdinc, #​1129)
  • Interface default methods are ignored (@​hahn-kev, #​972)
  • Callback validation too strict when setting up a task's .Result property (@​stakx, #​1132)
  • setup.Returns(InvocationFunc) wraps thrown exceptions in TargetInvocationException (@​stakx, #​1141)

4.16.0

Added

  • Ability to directly set up the .Result of tasks and value tasks, which makes setup expressions more uniform by rendering dedicated async verbs like .ReturnsAsync, .ThrowsAsync, etc. unnecessary:

    -mock.Setup(x => x.GetFooAsync()).ReturnsAsync(foo)
    +mock.Setup(x => x.GetFooAsync().Result).Returns(foo)

    This is useful in places where there currently aren't any such async verbs at all:

    -Mock.Of<X>(x => x.GetFooAsync() == Task.FromResult(foo))
    +Mock.Of<X>(x => x.GetFooAsync().Result == foo)

    This also allows recursive setups / method chaining across async calls inside a single setup expression:

    -mock.Setup(x => x.GetFooAsync()).ReturnsAsync(Mock.Of<IFoo>(f => f.Bar == bar))
    +mock.Setup(x => x.GetFooAsync().Result.Bar).Returns(bar)

    or, with only Mock.Of:

    -Mock.Of<X>(x => x.GetFooAsync() == Task.FromResult(Mock.Of<IFoo>(f => f.Bar == bar)))
    +Mock.Of<X>(x => x.GetFooAsync().Result.Bar == bar)

    This should work in all principal setup methods (Mock.Of, mock.Setup…, mock.Verify…). Support in mock.Protected() and for custom awaitable types may be added in the future. (@​stakx, #​1126)

Changed

  • Attempts to mark conditionals setup as verifiable are once again allowed; it turns out that forbidding it (as was done in #​997 for version 4.14.0) is in fact a regression. (@​stakx, #​1121)

Fixed

  • Performance regression: Adding setups to a mock becomes slower with each setup (@​CeesKaas, #​1110)

  • Regression: mock.Verify[All] no longer marks invocations as verified if they were matched by conditional setups. (@​Lyra2108, #​1114)

4.15.2

Changed

  • Upgraded System.Threading.Tasks.Extensions dependency to version 4.5.4 (@​JeffAshton, #​1108)

4.15.1

Added

  • New method overloads for It.Is, It.IsIn, and It.IsNotIn that compare values using a custom IEqualityComparer<T> (@​weitzhandler, #​1064)
  • New properties ReturnValue and Exception on IInvocation to query recorded invocations return values or exceptions (@​MaStr11, #​921, #​1077)
  • Support for "nested" type matchers, i.e. type matchers that appear as part of a composite type (such as It.IsAnyType[] or Func<It.IsAnyType, bool>). Argument match expressions like It.IsAny<Func<It.IsAnyType, bool>>() should now work as expected, whereas they previously didn't. In this particular example, you should no longer need a workaround like (Func<It.IsAnyType, bool>)It.IsAny<object>() as originally suggested in #​918. (@​stakx, #​1092)

Changed

  • Event accessor calls (+= and -=) now get consistently recorded in Mock.Invocations. This previously wasn't the case for backwards compatibility with VerifyNoOtherCalls (which got implemented before it was possible to check them using Verify{Add,Remove}). You now need to explicitly verify expected calls to event accessors prior to VerifyNoOtherCalls. Verification of += and -= now works regardless of whether or not you set those up (which makes it consistent with how verification usually works). (@​80O, @​stakx, #​1058, #​1084)
  • Portable PDB (debugging symbols) are now embedded in the main library instead of being published as a separate NuGet symbols package (`.snupkg) (@​kzu, #​1098)

Fixed

  • SetupProperty fails if property getter and setter are not both defined in mocked type (@​stakx, #​1017)
  • Expression tree argument not matched when it contains a captured variable – evaluate all captures to their current values when comparing two expression trees (@​QTom01, #​1054)
  • Failure when parameterized Mock.Of<> is used in query comprehension from clause (@​stakx, #​982)

4.14.7

Changed

  • Mocks created by DefaultValue.Mock now inherit SetupAllProperties from their "parent" mock (like it says in the XML documentation) (@​stakx, #​1074)

Fixed

  • Setup not triggered due to VB.NET transparently inserting superfluous type conversions into a setup expression (@​InteXX, #​1067)
  • Nested mocks created by Mock.Of<T>() no longer have their properties stubbed since version 4.14.0 (@​vruss, @​1071)
  • Verify fails for recursive setups not explicitly marked as Verifiable (@​killergege, #​1073)
  • Mock.Of<> fails for COM interop types that are annotated with a [CompilerGenerated] custom attribute (@​killergege, #​1072)

4.14.6

Fixed

  • Regression since 4.14.0: setting nested non-overridable properties via Mock.Of (@​mariotee, #​1039)

4.14.5

Fixed

  • Regression since version 4.11.0: VerifySet fails with NullReferenceException for write-only indexers (@​Epicycle23, #​1036)

4.14.4

Fixed

  • Regression: NullReferenceException on subsequent setup if expression contains null reference (@​IanYates83, #​1031)

4.14.3

Fixed

  • Regression, Part II: Verify behavior change using DefaultValue.Mock (@​DesrosiersC, #​1024)

4.14.2

Fixed

  • Regression: Verify behavior change using DefaultValue.Mock (@​DesrosiersC, #​1024)

4.14.1

Added

  • New SetupSequence verbs .PassAsync() and .ThrowsAsync(...) for async methods with void return type (@​fuzzybair, #​993)

Fixed

  • StackOverflowException on VerifyAll when mocked method returns mocked object (@​hotchkj, #​1012)

4.14.0

Added

  • A mock's setups can now be inspected and individually verified via the new Mock.Setups collection and IInvocation.MatchingSetup property (@​stakx, #​984-#​987, #​989, #​995, #​999)

  • New .Protected().Setup and Protected().Verify method overloads to deal with generic methods (@​JmlSaul, #​967)

  • Two new public methods in Times: bool Validate(int count) and string ToString() (@​stakx, 975)

Changed

  • Attempts to mark conditionals setup as verifiable are now considered an error, since conditional setups are ignored during verification. Calls to .Verifiable() on conditional setups are no-ops and can be safely removed. (@​stakx, #​997)

  • When matching invocations against setups, captured variables nested inside expression trees are now evaluated. Their values likely matter more than their identities. (@​stakx, #​1000)

Fixed

  • Regression: Restored Capture.In use in mock.Verify(expression, ...) to extract arguments of previously recorded invocations. (@​vgriph, #​968; @​stakx, #​974)

  • Consistency: When mocking a class C whose constructor invokes one of its virtual members, Mock.Of<C>() now operates like new Mock<C>(): a record of such invocations is retained in the mock's Invocations collection (@​stakx, #​980)

  • After updating Moq from 4.10.1 to 4.11, mocking NHibernate session throws a System.NullReferenceException (@​ronenfe, #​955)

4.13.1

Fixed

  • SetupAllProperties does not recognize property as read-write if only setter is overridden (@​stakx, #​886)

  • Regression: InvalidCastException caused by Moq erroneously reusing a cached auto-mocked (DefaultValue.Mock) return value for a different generic method instantiation (@​BrunoJuchli, #​932)

  • AmbiguousMatchException when setting up the property, that hides another one (@​ishatalkin, #​939)

  • ArgumentException ("Interface not found") when setting up object.ToString on an interface mock (@​vslynko, #​942)

  • Cannot "return" to original mocked type after downcasting with Mock.Get and then upcasting with mock.As<> (@​pjquirk, #​943)

  • params arrays in recursive setup expressions are matched by reference equality instead of by structural equality (@​danielcweber, #​946)

  • mock.SetupProperty throws NullReferenceException when called for partially overridden property (@​stakx, #​951)

4.13.0

Changed

  • Improved error message that is supplied with ArgumentException thrown when Setup or Verify are called on a protected method if the method could not be found with both the name and compatible argument types specified (@​thomasfdm, #​852).

  • mock.Invocations.Clear() now removes traces of previous invocations more thoroughly by additionally resetting all setups to an "unmatched" state. (@​stakx, #​854)

  • Consistent Callback delegate validation regardless of whether or not Callback is preceded by a Returns: Validation for post-Returns callback delegates used to be very relaxed, but is now equally strict as in the pre-Returns case.) (@​stakx, #​876)

  • Subscription to mocked events used to be handled less strictly than subscription to regular CLI events. As with the latter, subscribing to mocked events now also requires all handlers to have the same delegate type. (@​stakx, #​891)

  • Moq will throw when it detects that an argument matcher will never match anything due to the presence of an implicit conversion operator. (@​michelcedric, #​897, #​898)

  • New algorithm for matching invoked methods against methods specified in setup/verification expressions. (@​stakx, #​904)

Added

  • Added support for setup and verification of the event handlers through Setup[Add|Remove] and Verify[Add|Remove|All] (@​lepijohnny, #​825)

  • Added support for lambda expressions while creating a mock through new Mock<SomeType>(() => new SomeType("a", "b")) and repository.Create<SomeType>(() => new SomeType("a", "b")). This makes the process of mocking a class without a parameterless constructor simpler (compiler syntax checker...). (@​frblondin, #​884)

  • Support for matching generic type arguments: mock.Setup(m => m.Method<It.IsAnyType>(...)). (@​stakx, #​908)

    The standard type matchers are:

    • It.IsAnyType — matches any type
    • It.IsSubtype<T> — matches T and proper subtypes of T
    • It.IsValueType — matches only value types

    You can create your own custom type matchers:

    [TypeMatcher]
    class Either<A, B> : ITypeMatcher
    {
        public bool Matches(Type type) => type == typeof(A) || type == typeof(B);
    }
  • In order to support type matchers (see bullet point above), some new overloads have been added to existing methods:

    • setup.Callback(new InvocationAction(invocation => ...)),
      setup.Returns(new InvocationFunc(invocation => ...)):

      The lambda specified in these new overloads will receive an IInvocation representing the current invocation from which type arguments as well as arguments can be discovered.

    • Match.Create<T>((object argument, Type parameterType) => ..., ...),
      It.Is<T>((object argument, Type parameterType) => ...):

      Used to create custom matchers that work with type matchers. When a type matcher is used for T, the argument received by the custom matchers is untyped (object), and its actual type (or rather the type of the parameter for which the argument was passed) is provided via an additional parameter parameterType. (@​stakx, #​908)

... (truncated)

4.12.0

Changed

  • Improved performance for Mock.Of<T> and mock.SetupAllProperties() as the latter now performs property setups just-in-time, instead of as an ahead-of-time batch operation. (@​vanashimko, #​826)
  • Setups with no .Returns(…) nor .CallBase() no longer return default(T) for loose mocks, but a value that is consistent with the mock's CallBase and DefaultValue[Provider] settings. (@​stakx, #​849)

Added

  • New method overload sequenceSetup.ReturnsAsync(Func<T>) (@​stakx, #​841)
  • LINQ to Mocks support for strict mocks, i.e. new method overloads for Mock.Of, Mocks.Of, mockRepository.Of, and mockRepository.OneOf that accept a MockBehavior parameter. (@​stakx, #​842)

Fixed

  • Adding Callback to a mock breaks async tests (@​marcin-chwedczuk-meow, #​702)
  • mock.SetupAllProperties() now setups write-only properties for strict mocks, so that accessing such properties will not throw anymore. (@​vanashimko, #​836)
  • Regression: mock.SetupAllProperties() and Mock.Of<T> fail due to inaccessible property accessors (@​Mexe13, #​845)
  • Regression: VerifyNoOtherCalls causes stack overflow when mock setup returns the mocked object (@​bash, #​846)
  • Capture.In() no longer captures arguments when other setup arguments do not match (@​ocoanet, #​844).
  • CaptureMatch no longer invokes the capture callback when other setup arguments do not match (@​ocoanet, #​844).

4.11.0

Same as 4.11.0 Release Candidate 2. See changelog entries for the two pre-release versions.

4.11.0-rc2

This is a pre-release version.

Changed

  • Debug symbols (Moq.pdb) have moved into a separate NuGet symbol package (as per the current official guideline). If you want the Visual Studio debugger to step into Moq's source code, disable Just My Code, enable SourceLink, and configure NuGet's symbol server. (@​stakx, #​789)

Fixed

  • Regression: Unhelpful exception message when setting up an indexer with SetupProperty (@​stakx, #​823)

4.11.0-rc1

This is a pre-release version.

It contains several minor breaking changes, and there have been extensive internal rewrites in order to fix some very long-standing bugs in relation to argument matchers in fluent setup expressions.

Changed

  • The library now targets .NET Standard 2.0 instead of .NET Standard 1.x. This has been decided based on the official cross-platform targeting guideline and the End of Life announcement for .NET Core 1.x (@​stakx, #​784, #​785)

  • Method overload resolution may change for:

    • mock.Protected().Setup("VoidMethod", ...)
    • mock.Protected().Verify("VoidMethod", ...)
    • mock.Protected().Verify<TResult>("NonVoidMethod", ...)

    due to a new overload: If the first argument is a bool, make sure that argument gets interpreted as part of args, not as exactParameterMatch (see also Added section below). (@​stakx & @​Shereef, #​751, #​753)

  • mock.Verify[All] now performs a more thorough error aggregation. Error messages of inner/recursive mocks are included in the error message using indentation to show the relationship between mocks. (@​stakx, #​762)

  • mock.Verify no longer creates setups, nor will it override existing setups, as a side-effect of using a recursive expression. (@​stakx, #​765)

  • More accurate detection of argument matchers with SetupSet and VerifySet, especially when used in fluent setup expressions or with indexers (@​stakx, #​767)

  • mock.Verify(expression) error messages now contain a full listing of all invocations that occurred across all involved mocks. Setups are no longer listed, since they are completely irrelevant in the context of call verification. (@​stakx, #​779, #​780)

  • Indexers used as arguments in setup expressions are now eagerly evaluated, like all other properties already are (except when they refer to matchers) (@​stakx, #​794)

  • Update package reference to Castle.Core (DynamicProxy) from version 4.3.1 to 4.4.0 (@​stakx, #​797)

Added

  • New method overloads:

    • mock.Protected().Setup("VoidMethod", exactParameterMatch, args)
    • mock.Protected().Verify("VoidMethod", times, exactParameterMatch, args)
    • mock.Protected().Verify<TResult>("NonVoidMethod", times, exactParameterMatch, args)

    having a bool exactParameterMatch parameter. Due to method overload resolution, it was easy to think this already existed when in fact it did not, leading to failing tests. (@​Shereef & @​stakx, #​753, #​751)

  • Ability in mock.Raise and setup.Raises to raise events on sub-objects (inner mocks) (@​stakx, #​772)

Removed

  • Pex interop (which has not been maintained for years). You might notice changes when using Visual Studio's IntelliTest feature. (@​stakx, #​786)

Fixed

  • Setting multiple indexed object's property directly via LINQ fails (@​TylerBrinkley, #​314)
  • InvalidOperationException when specifiying setup on mock with mock containing property of type Nullable<T> (@​dav1dev, #​725)
  • Verify gets confused between the same generic and non-generic signature (@​lepijohnny, #​749)
  • Setup gets included in Verify despite being "unreachable" (@​stakx, #​703)
  • Verify can create setups that cause subsequent VerifyAll to fail (@​stakx & @​lepijohnny, #​699)
  • Incomplete stack trace when raising an event with mock.Raise throws (@​MutatedTomato, #​738)
  • Mock.Raise only raises events on root object (@​hallipr, #​166)
  • Mocking indexer captures It.IsAny() as the value, even if given in the indexer argument (@​idigra, #​696)
  • VerifySet fails on non-trivial property setup (@​TimothyHayes, #​430)
  • Use of SetupSet 'forgets' method setup (@​TimothyHayes, #​432)
  • Recursive mocks don't work with argument matching (@​thalesmello, #​142)
  • Recursive property setup overrides previous setups (@​jamesfoster, #​110)
  • Formatting of enumerable object for error message broke EF Core test case (@​MichaelSagalovich, #​741)
  • Verify[All] fails because of lazy (instead of eager) setup argument expression evaluation (@​aeslinger, #​711)
    ... (truncated)

4.10.1

Fixed

  • NullReferenceException when using SetupSet on indexers with multiple parameters (@​idigra, #​694)
  • CallBase should not be allowed for delegate mocks (@​tehmantra, #​706)

Changed

  • Dropped the dependency on the System.ValueTuple NuGet package, at no functional cost (i.e. value tuples are still supported just fine) (@​stakx, #​721)
  • Updated failure messages to show richer class names (@​powerdude, #​727)
  • Upgraded System.Reflection.TypeExtensions and System.Threading.Tasks.Extensions dependencies to versions 4.5.1 (@​stakx, #​729)

4.10.0

Added

  • ExpressionCompiler: An extensibility point for setting up alternate LINQ expression tree compilation strategies (@​stakx, #​647)
  • setup.CallBase() for void methods (@​stakx, #​664)
  • VerifyNoOtherCalls for MockRepository (@​BlythMeister, #​682)

Changed

  • Make VerifyNoOtherCalls take into account previous calls to parameterless Verify() and VerifyAll() (@​stakx, #​659)
  • Breaking change: VerifyAll now succeeds after a call to SetupAllProperties even when not all property accessors were invoked (stakx, #​684)

Fixed

  • More precise out parameter detection for mocking COM interfaces with [in,out] parameters (@​koutinho, #​645)
  • Prevent false 'Different number of parameters' error with Returns callback methods that have been compiled from Expressions (@​stakx, #​654)
  • Verify exception should report configured setups for delegate mocks (@​stakx, #​679)
  • Verify exception should include complete call expression for delegate mocks (@​stakx, #​680)
  • Bug report #​556: "Recursive setup expression creates ghost setups that make VerifyAll fail" (@​stakx, #​684)
  • Bug report #​191: "Upgrade from 4.2.1409.1722 to 4.2.1507.0118 changed VerifyAll behavior" (@​stakx, #​684)

4.9.0

Added

  • Add Mock.Invocations property to support inspection of invocations on a mock (@​Tragedian, #​560)

Changed

  • Update package reference to Castle.Core (DynamicProxy) from version 4.3.0 to 4.3.1 (@​stakx, #​635)
  • Floating point values are formatted with higher precision (satisfying round-tripping) in diagnostic messages (@​stakx, #​637)

Fixed

  • CallBase disregarded for some base methods from non-public interfaces (@​stakx, #​641)

Obsoleted

  • mock.ResetCalls() has been deprecated in favor of mock.Invocations.Clear() (@​stakx, #​633)

4.8.3

Added

  • Add ISetupSequentialResult<TResult>.Returns method overload that support delegate for deferred results (@​snrnats, #​594)
  • Support for C# 7.2's in parameter modifier (@​stakx, #​624, #​625)
  • Missing methods ReturnsAsync and ThrowsAsync for sequential setups of methods returning a ValueTask (@​stakx, #​626)

Changed

  • Breaking change: All ReturnsAsync and ThrowsAsync setup methods now consistently return a new Task on each invocation (@​snrnats, #​595)
  • Speed up Mock.Of<T>() by approx. one order of magnitude (@​informatorius, #​598)
  • Update package reference to Castle.Core (DynamicProxy) from version 4.2.1 to 4.3.0 (@​stakx, #​624)

Fixed

  • Usage of ReturnsExtensions.ThrowsAsync() can cause UnobservedTaskException (@​snrnats, #​595)
  • ReturnsAsync and ThrowsAsync with delay parameter starts timer at setup (@​snrnats, #​595)
  • Returns regression with null function callback (@​Caraul, #​602)

4.8.2

Changed

  • Upgraded System.ValueTuple dependency to version 4.4.0 in order to reestablish Moq compatibility with .NET 4.7 (and later), which already include the ValueTuple types (@​stakx, #​591)

Fixed

  • Wrong parameters count for extension methods in Callback and Returns (@​Caraul, #​575)
  • CallBase regression with members of additional interfaces (@​stakx, #​583)

4.8.1

Added

  • C# 7 tuple support for DefaultValue.Empty and DefaultValue.Mock (@​stakx, #​563)

Changed

  • Downgraded System.Threading.Tasks.Extensions and System.ValueTuple dependencies to versions 4.3.0 as suggested by @​tothdavid in order to improve Moq compatibility with .NET 4.6.1 / help prevent MissingMethodException and similar (@​stakx, #​571)

Fixed

  • CallBase regression with explicitly implemented interface methods (@​stakx, #​558)

4.8.0

Same as 4.8.0 Release Candidate 1, plus some significant speed improvements.

Changed

  • SetupAllProperties now fully supports property type recursion / loops in the object graph, thanks to deferred property initialization (@​stakx, #​550)

4.8.0-rc1

This is a pre-release version.

Added

  • Support for sequential setup of void methods (@​alexbestul, #​463)
  • Support for sequential setups (SetupSequence) of protected members (@​stakx, #​493)
  • Support for callbacks for methods having ref or out parameters via two new overloads of Callback and Returns (@​stakx, #​468)
  • Improved support for setting up and verifying protected members (including generic methods and methods having by-ref parameters) via the new duck-typing mock.Protected().As<TAnalog>() interface (@​stakx, #​495, #​501)
  • Support for ValueTask<TResult> when using the ReturnsAsync extension methods, similar to Task<TResult> (@​AdamDotNet, #​506)
  • Special handling for ValueTask<TResult> with DefaultValue.Empty (@​stakx, #​529)
  • Support for custom default value generation strategies besides DefaultValue.Empty and DefaultValue.Mock:
    Implement custom providers by subclassing either DefaultValueProvider or LookupOrFallbackDefaultValueProvider,
    install them by setting Mock[Repository].DefaultValueProvider (@​stakx, #​533, #​536)
  • Allow DefaultValue.Mock to mock Task<TMockable> and ValueTask<TMockable> (@​stakx, #​502)
  • Match any value for ref parameters with It.Ref<T>.IsAny (or ItExpr.Ref<T>.IsAny for protected methods) as you would with It.IsAny<T>() for regular parameters (@​stakx, #​537)
  • Mock.VerifyNoOtherCalls() to check whether all expected invocations have been verified -- can be used as an alternative to MockBehavior.Strict (@​stakx, #​539)

Changed

  • Breaking change: SetupSequence now overrides pre-existing setups like all other Setup methods do. This means that exhausted sequences no longer fall back to previous setups to produce a "default" action or return value. (@​stakx, #​476)
  • Delegates passed to Returns are validated a little more strictly than before (return type and parameter count must match with method being set up) (@​stakx, #​520)
  • Change assembly versioning scheme to major.minor.0.0 to help prevent assembly version conflicts and to reduce the need for binding redirects (@​stakx, #​554)

Fixed

  • Update a method's invocation count correctly, even when it is set up to throw an exception (@​stakx, #​473)
  • Sequences set up with SetupSequence are now thread-safe (@​stakx, #​476)
  • Record calls to methods that are named like event accessors (add_X, remove_X) so they can be verified (@​stakx, #​488)
  • Improve recognition logic for sealed methods so that Setup throws when an attempt is made to set one up (@​stakx, #​497)
  • Let SetupAllProperties skip inaccessible methods (@​stakx, #​499)
  • Prevent Moq from relying on a mock's implementation of IEnumerable<T> (@​stakx, #​510)
  • Verification leaked internal MockVerificationException type; remove it (@​stakx, #​511)
  • Custom matcher properties not printed correctly in error messages (@​stakx, #​517)
  • Infinite loop when invoking delegate in Mock.Of setup expression (@​stakx, #​528)

Obsoleted

  • [Matcher] has been deprecated in favor of Match.Create (@​stakx, #​514)

Commits viewable in compare view.

Updated NUnit from 3.13.3 to 4.6.1.

Release notes

Sourced from NUnit's releases.

4.6.1

See release notes for details.

4.6.0

See release notes for details.

4.5.1

See release notes for details.

4.5.0

See release notes for details.

4.4.0

See release notes for details.

4.3.2

This is a hotfix release.
See release notes for details.

4.3.1

This is a hotfix release.
See release notes for details.

4.3.0

See release notes

4.2.2

Hotfix for fixing regression bug #​4802

What's Changed

Full Changelog: nunit/nunit@4.2.1...4.2.2

4.2.1

Hotfix release for Issue #​4794 and #​4795, affecting .Net Framework.

4.2.0

See release notes

4.1.0

See release notes

4.0.1

Patch release to fix windows targets

See release notes
and
See migration guide

4.0.0

See release notes
and
See migration guide

4.0.0-beta.1

See release notes
and information

3.14.0

See release notes

Commits viewable in compare view.

Updated NUnit3TestAdapter from 4.2.1 to 6.2.0.

Release notes

Sourced from NUnit3TestAdapter's releases.

6.2.0

See release notes

6.1.0

See release notes

6.0.1

See release notes

6.0.0

See release notes

5.2.0

See release notes

5.1.0

See release notes

5.0.0

See release notes

4.6.0

See release notes

4.5.0

Release for support of NUnit4
Fix for Issue #​1100

4.4.2

Hotfix release for the issues nunit/nunit3-vs-adapter#1065, nunit/nunit3-vs-adapter#1066, nunit/nunit3-vs-adapter#1069 and nunit/nunit3-vs-adapter#1070

What's Changed

Full Changelog: nunit/nunit3-vs-adapter@V4.4.0...V4.4.2

4.4.1

Hotfix release for the issues #​1065, #​1066, #​1069 and #​1070

4.4.0

See release notes here

4.4.0-beta.1

See release notes here

4.3.2

A hotfix release for adapter version 4.3 for Issue #​1144
Ability to run under .net 8, while targeting net framework 4.5

4.3.1

See release notes here

4.3.0

See release notes here

Commits viewable in compare view.

Updated Verify.Xunit from 17.1.1 to 20.8.2.

Release notes

Sourced from Verify.Xunit's releases.

20.8.1

As part of this release we had 6 commits which resulted in 1 issue being closed.

Bug

  • #​969 System.PlatformNotSupportedException : System.Management currently is only supported for Windows desktop applications.

20.8.0

As part of this release we had 9 commits which resulted in 1 issue being closed.

Feature

  • #​967 update EmptyFiles and DiffEngine

20.7.0

As part of this release we had 20 commits which resulted in 1 issue being closed.

Feature

  • #​962 Update diffengine to 12.1.0

20.6.0

As part of this release we had 16 commits which resulted in 1 issue being closed.

Feature

  • #​945 expose GetNameForParameter

20.5.0

As part of this release we had 1 issue closed.

Improvement

  • #​934 update to DiffEngine v 12

20.4.0

As part of this release we had 26 commits which resulted in 2 issues being closed.

Bug

  • #​920 Remove parameter hashing from unsupported tfm

Feature

20.3.2

As part of this release we had 1 issue closed.

Feature

20.3.0

As part of this release we had 1 commit which resulted in 1 issue being closed.

Feature

20.2.0

As part of this release we had 10 commits which resulted in 1 issue being closed.

Feature

  • #​888 Addition changes to enable Verify.Cli app

20.1.1

As part of this release we had 6 commits which resulted in 1 issue being closed.

Bug

  • #​897 Fix ms test exception parsing

20.1.0

As part of this release we had 23 commits which resulted in 4 issues being closed.

Bug

  • #​891 missing fileScrubber in VerifyDirectory overloads

Features

  • #​884 Generate a hash of parameters for the file name
  • #​885 Adding parameter hashing function
  • #​892 Add Zip Archive support

20.0.0

As part of this release we had 35 commits which resulted in 1 issue being closed.

Feature

19.14.1

As part of this release we had 9 commits which resulted in 1 issue being closed.

Bug

  • #​866 Fix VerifierSettings.InitializePlugins() fails when assembly name contains a dot

19.14.0

As part of this release we had 7 commits which resulted in 1 issue being closed.

Feature

  • #​860 Add UseProjectRelativeDirectory

19.13.1

As part of this release we had 1 issue closed.

Bug

  • #​855 Fix Mono detection in namer

19.12.2

As part of this release we had 12 commits which resulted in 1 issue being closed.

Feature

19.12.1

As part of this release we had 6 commits which resulted in 1 issue being closed.

Feature

19.12.0

As part of this release we had 19 commits which resulted in 1 issue being closed.

Feature

  • #​824 add support for StringDictionary

19.11.2

As part of this release we had 1 issue closed.

Feature

19.11.0

As part of this release we had 45 commits which resulted in 3 issues being closed.

Features

19.10.0

As part of this release we had 5 issues closed.

Bugs

  • #​793 Deduplicate uniqueness prefixes
  • #​795 Missing netframework detection

Features

  • #​792 remove nofilename transitional code
  • #​794 EmptyFiles 4.2.0
  • #​796 Remove unused targets net6.0-android and net6.0-ios

19.9.0

As part of this release we had 8 commits which resulted in 1 issue being closed.

Feature

19.8.3

As part of this release we had 7 commits which resulted in 1 issue being closed.

Bug

  • #​779 Fix replacement of boxed dictionary keys

19.8.2

As part of this release we had 4 commits which resulted in 2 issues being closed.

Bugs

  • #​777 Fix counter scrubbing in xml
  • #​778 TimeOnly strings not being scrubbed

19.8.1

As part of this release we had 6 commits which resulted in 1 issue being closed.

Bug

  • #​776 Fix VirtualizedRunHelper StackOverflow

19.8.0

As part of this release we had 11 commits which resulted in 1 issue being closed.

Feature

  • #​729 Map local build path during WSL run

19.7.1

As part of this release we had 9 commits which resulted in 1 issue being closed.

Feature

  • #​769 Reduce some alloc by avoid premature list generation

19.7.0

As part of this release we had 70 commits which resulted in 2 issues being closed.

Features

_Descrip...

Description has been truncated

Bumps Microsoft.NET.Test.Sdk to 17.3.3
Bumps Moq from 4.7.99 to 4.20.72
Bumps NUnit from 3.13.3 to 4.6.1
Bumps NUnit3TestAdapter from 4.2.1 to 6.2.0
Bumps Verify.Xunit from 17.1.1 to 20.8.2
Bumps xunit from 2.4.1 to 2.9.3
Bumps Xunit.SkippableFact from 1.4.13 to 1.5.61

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 17.3.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: test-tooling
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 17.3.3
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: test-tooling
- dependency-name: Moq
  dependency-version: 4.20.72
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: test-tooling
- dependency-name: NUnit
  dependency-version: 4.6.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: test-tooling
- dependency-name: NUnit3TestAdapter
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: test-tooling
- dependency-name: Verify.Xunit
  dependency-version: 20.8.2
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: test-tooling
- dependency-name: xunit
  dependency-version: 2.9.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: test-tooling
- dependency-name: Xunit.SkippableFact
  dependency-version: 1.5.61
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: test-tooling
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Aug 6, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 7, 2026

Copy link
Copy Markdown
Author

Looks like these dependencies are no longer updatable, so this is no longer needed.

@dependabot dependabot Bot closed this Aug 7, 2026
@dependabot
dependabot Bot deleted the dependabot/nuget/tests/RazorLight.Precompile.Tests/test-tooling-7d4e82bce1 branch August 7, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants