-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't workingquestion/investigationFurther information or investigation is requiredFurther information or investigation is required
Description
I belive this problem was already issued before in original tonerdo/pose (tonerdo/pose#11) but I think it remained unaddressed. The problem occures when I want to access e.g. standard collection as queryable from inside of the isolated code e.g.:
internal class Program
{
public static IQueryable<int> GetInts()
{
return null;
}
static void Main(string[] args)
{
List<int> ints = new List<int>();
ints.Add(1);
var getIntsShim = Pose.Shim.Replace(() => Program.GetInts())
.With(() => ints.AsQueryable());
Pose.PoseContext.Isolate(() =>
{
Console.WriteLine(Program.GetInts().Count());
}, getIntsShim);
Console.ReadLine();
}
}
Isolated code seemed to get null (or at least perceives obtained object as a null).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestion/investigationFurther information or investigation is requiredFurther information or investigation is required