4.13.1
Fixed
-
SetupAllPropertiesdoes not recognize property as read-write if only setter is overridden (@stakx, #886) -
Regression:
InvalidCastExceptioncaused 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 upobject.ToStringon an interface mock (@vslynko, #942) -
Cannot "return" to original mocked type after downcasting with
Mock.Getand then upcasting withmock.As<>(@pjquirk, #943) -
paramsarrays in recursive setup expressions are matched by reference equality instead of by structural equality (@danielcweber, #946) -
mock.SetupPropertythrowsNullReferenceExceptionwhen called for partially overridden property (@stakx, #951)