Moq v4.1.1308.2120 Release Notes

  • โž• Added

    • โž• Add capability for mocking delegates (event handlers) (@quetzalcoatl, #4)
    • ๐Ÿ‘ Allow CallBase for specific method / property (@srudin, #8)
    • ๐Ÿ†• New matchers It.IsIn and It.IsNotIn (@rdingwall, #27)
    • โž• Add .gitignore file (@yorah, #10 / @FellicePollano, #30)
    • โž• Add new Verify method overload group that accepts a Times instance (@ChrisMissal, #34)

    ๐Ÿ”„ Changed

    • โšก๏ธ Update Castle.Core assemblies from version 1.2.0.0 to 3.2.0, fetch Castle.Core via NuGet (@yorah, #11 / @kzu)
    • Corrected Verify method behavior for generic methods calls (@Suremaker, #25)
    • Split up Interceptor.Intercept into a set of 8 strategies, introduce InterceptionAction(@FellicePollano, #31)

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix SetupSequentialContext to increment counter also after Throws (@lukas-ais, #7)
    • ๐Ÿคก Make Mock.Of work on properties with non-public setters (@yorah, #9, #19)
    • โž• Adding (and removing) handlers for events declared on interfaces when CallBase = true (@IharBury, #13)
    • ๐Ÿคก Distinguish between verification exception and mock crash (@quetzalcoatl, #16)
    • ๐Ÿ‘Œ Improve thread safety of Interceptor class (@FelicePollano, #29)

    Note: Release notes in the above format are not available for ealier versions of Moq. The above ๐Ÿ”„ changelog entries have been reconstructed from the Git commit history. What follows below are the ๐Ÿš€ original release notes, for which maintenance stopped around Moq version 4.5. They are nevertheless included below as they go back further in time.