Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLarsson authored and stakx committed Jun 22, 2017
1 parent 62f5413 commit 4474776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Linq/MockSetupsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Source/Linq/Mocks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static class Mocks
/// 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 :)
/// </summary>
internal static bool SetPropery<T, TResult>(Mock<T> target, Expression<Func<T, TResult>> propertyReference, TResult value)
internal static bool SetProperty<T, TResult>(Mock<T> target, Expression<Func<T, TResult>> propertyReference, TResult value)
where T : class
{
var memberExpr = (MemberExpression)propertyReference.Body;
Expand Down

0 comments on commit 4474776

Please sign in to comment.