Skip to content

Commit df82b36

Browse files
committed
Fix typo.
1 parent 62f5413 commit df82b36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Linq/MockSetupsBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private static Expression ConvertToSetupProperty(Expression targetObject, Expres
208208
// which also allows the use of this querying capability against plain DTO even
209209
// if their properties are not virtual.
210210
var setPropertyMethod = typeof(Mocks)
211-
.GetMethod("SetPropery", BindingFlags.Static | BindingFlags.NonPublic)
211+
.GetMethod("SetProperty", BindingFlags.Static | BindingFlags.NonPublic)
212212
.MakeGenericMethod(mockExpression.Type.GetGenericArguments().First(), propertyInfo.PropertyType);
213213

214214
return Expression.Equal(

Source/Linq/Mocks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private static IEnumerable<T> CreateMocks<T>() where T : class
150150
/// Extension method used to support Linq-like setup properties that are not virtual but do have
151151
/// a getter and a setter, thereby allowing the use of Linq to Mocks to quickly initialize Dtos too :)
152152
/// </summary>
153-
internal static bool SetPropery<T, TResult>(Mock<T> target, Expression<Func<T, TResult>> propertyReference, TResult value)
153+
internal static bool SetProperty<T, TResult>(Mock<T> target, Expression<Func<T, TResult>> propertyReference, TResult value)
154154
where T : class
155155
{
156156
var memberExpr = (MemberExpression)propertyReference.Body;

0 commit comments

Comments
 (0)