Completed
Last Updated: 18 Jun 2019 08:43 by ADMIN
ADMIN
Kaloyan
Created on: 10 Nov 2017 10:25
Type: Bug Report
2
Different behavior for different Arrange() overrides
There is a different behaviour when mocking the same method using the following two Arrange overrides:

public static FuncExpectation<TResult> Arrange<TResult>(Expression<Func<TResult>> expression);
public static FuncExpectation<TResult> Arrange<T, TResult>(T obj, Func<T, TResult> func);

Repro project attached. Steps to reproduce:
1. Open attached solution
2. In Tests.cs, run JustMockArrangeQueryableTest - it passes
3. Run JustMockArrangeQueryableTest2 - it fails with a invalid cast exception on the Residents collection.
Attached Files:
1 comment
ADMIN
Mihail
Posted on: 18 Jun 2019 08:42
Status update.

The issue is fixed and it will be available with R2 SP1 2019 expected later this week.