Skip to content

Commit 653db31

Browse files
committed
Some minor renames for consistency
1 parent fc73131 commit 653db31

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
File renamed without changes.

src/Moq/Interception/InterceptionAspects.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static bool Handle(Invocation invocation, Mock mock)
217217
if (ProxyFactory.Instance.IsMethodVisible(getter, out _))
218218
{
219219
propertyValue = CreateInitialPropertyValue(mock, getter);
220-
getterSetup = new AutoImplementedPropertyGetterSetup(mock, expression, getter, () => propertyValue);
220+
getterSetup = new StubbedPropertyGetterSetup(mock, expression, getter, () => propertyValue);
221221
mock.MutableSetups.Add(getterSetup);
222222
}
223223

@@ -237,7 +237,7 @@ public static bool Handle(Invocation invocation, Mock mock)
237237
{
238238
if (ProxyFactory.Instance.IsMethodVisible(setter, out _))
239239
{
240-
setterSetup = new AutoImplementedPropertySetterSetup(mock, expression, setter, (newValue) =>
240+
setterSetup = new StubbedPropertySetterSetup(mock, expression, setter, (newValue) =>
241241
{
242242
propertyValue = newValue;
243243
});
File renamed without changes.

src/Moq/AutoImplementedPropertyGetterSetup.cs renamed to src/Moq/StubbedPropertyGetterSetup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ namespace Moq
1010
/// <summary>
1111
/// Setup used by <see cref="Mock.SetupAllProperties(Mock)"/> for property getters.
1212
/// </summary>
13-
internal sealed class AutoImplementedPropertyGetterSetup : Setup
13+
internal sealed class StubbedPropertyGetterSetup : Setup
1414
{
1515
private static Expression[] noArguments = new Expression[0];
1616

1717
private Func<object> getter;
1818

19-
public AutoImplementedPropertyGetterSetup(Mock mock, LambdaExpression originalExpression, MethodInfo method, Func<object> getter)
19+
public StubbedPropertyGetterSetup(Mock mock, LambdaExpression originalExpression, MethodInfo method, Func<object> getter)
2020
: base(originalExpression: null, mock, new InvocationShape(originalExpression, method, noArguments))
2121
{
2222
this.getter = getter;

src/Moq/AutoImplementedPropertySetterSetup.cs renamed to src/Moq/StubbedPropertySetterSetup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ namespace Moq
1111
/// <summary>
1212
/// Setup used by <see cref="Mock.SetupAllProperties(Mock)"/> for property setters.
1313
/// </summary>
14-
internal sealed class AutoImplementedPropertySetterSetup : Setup
14+
internal sealed class StubbedPropertySetterSetup : Setup
1515
{
1616
private Action<object> setter;
1717

18-
public AutoImplementedPropertySetterSetup(Mock mock, LambdaExpression originalExpression, MethodInfo method, Action<object> setter)
18+
public StubbedPropertySetterSetup(Mock mock, LambdaExpression originalExpression, MethodInfo method, Action<object> setter)
1919
: base(originalExpression: null, mock, new InvocationShape(originalExpression, method, new Expression[] { It.IsAny(method.GetParameterTypes().Last()) }))
2020
{
2121
this.setter = setter;

0 commit comments

Comments
 (0)