From df82b360a2e99772f8413b9eda341d59d15ba11f Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Wed, 21 Jun 2017 23:53:56 +0200 Subject: [PATCH] Fix typo. --- Source/Linq/MockSetupsBuilder.cs | 2 +- Source/Linq/Mocks.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Linq/MockSetupsBuilder.cs b/Source/Linq/MockSetupsBuilder.cs index b79bba8de..0ca4384c6 100644 --- a/Source/Linq/MockSetupsBuilder.cs +++ b/Source/Linq/MockSetupsBuilder.cs @@ -208,7 +208,7 @@ private static Expression ConvertToSetupProperty(Expression targetObject, Expres // which also allows the use of this querying capability against plain DTO even // if their properties are not virtual. var setPropertyMethod = typeof(Mocks) - .GetMethod("SetPropery", BindingFlags.Static | BindingFlags.NonPublic) + .GetMethod("SetProperty", BindingFlags.Static | BindingFlags.NonPublic) .MakeGenericMethod(mockExpression.Type.GetGenericArguments().First(), propertyInfo.PropertyType); return Expression.Equal( diff --git a/Source/Linq/Mocks.cs b/Source/Linq/Mocks.cs index 7ecca6f9e..305c36eb6 100644 --- a/Source/Linq/Mocks.cs +++ b/Source/Linq/Mocks.cs @@ -150,7 +150,7 @@ private static IEnumerable CreateMocks() where T : class /// Extension method used to support Linq-like setup properties that are not virtual but do have /// a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :) /// - internal static bool SetPropery(Mock target, Expression> propertyReference, TResult value) + internal static bool SetProperty(Mock target, Expression> propertyReference, TResult value) where T : class { var memberExpr = (MemberExpression)propertyReference.Body;