Closed suodbons closed 3 years ago
This is by design. Changes that are not persisted via explicitly calling methods like .Create, .Update etc won't be persisted and so can't be retrieved. The way I test changes made to the target is by checking the original object references, as you did above in the first example.
If plugin is like ConfigurationPlugin and after executing I try to retrieve target from context (not use the target object in inputs), I will get unchanged entity as if plugin didn't execute.
Target object check in inputs works correctly. But if tests have one context and need info from other tests it could be uncomfortable.
Using FakeXrmEasy.9 v1.57.1