Serg046 / AutoFake

Mock any type members including static and non-virtual ones
MIT License
51 stars 4 forks source link

Confusing contract for When() with executor #254

Open Serg046 opened 1 year ago

Serg046 commented 1 year ago

Icorrect:

sut.Remove(f => f.CodeBranch(1, 2)).When(e => e.Execute(f => f.Field == 0));

Correct:

sut.Remove(f => f.CodeBranch(1, 2)).When(e => e.Execute(f => f.Field) == 0);