Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo. #389

Merged
merged 1 commit into from
Jun 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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