Moq v4.13.1 Release Notes

Release Date: 2019-10-19 // almost 3 years ago
  • 🛠 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)