You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spun off from/a precursor to #461, specifically #461 (comment), where I advocate this set of interactions:
CallsBaseMethods - should trump prior invocations of ConfigureFake, Strict, and Wrapping
ConfigureFake - should "stack" with prior invocations, just as
multiple A.CallsTo do, which would include overriding earlier CallsBaseMethods, Strict, and Wrapping
Implements - should "stack" with prior invocations, ever accumulating more interfaces
Strict - should trump prior invocations of CallsBaseMethods, ConfigureFake, and Wrapping
WithAdditionalAttributes - should "stack" with prior invocations, ever accumulating more attributes
WithArgumentsForConstructor - should trump prior invocations
Wrapping - should trump prior invocations of CallsBaseMethods, ConfigureFake, Strict, and Wrapping
While writing characterization tests in #465, I noticed deviations, even when just setting competing options in the A.Fake() calls:
WithAdditionalAttributes called twice: last one in wins, rather than stacking
ConfigureFake followed by Wrapping - uses configured, not wrapped, behaviour
CallsBaseMethods followed by Wrapping - calls base method
Strict followed by Wrapping - acts strict
I'd like to smooth out these deviations before extending IFakeConfigurator.
I am very close to a PR (in the "cleanup" phase) that would build upon the work in #465.
The text was updated successfully, but these errors were encountered:
spun off from/a precursor to #461, specifically #461 (comment), where I advocate this set of interactions:
CallsBaseMethods
- should trump prior invocations ofConfigureFake
,Strict
, andWrapping
ConfigureFake
- should "stack" with prior invocations, just asmultiple
A.CallsTo
do, which would include overriding earlierCallsBaseMethods
,Strict
, andWrapping
Implements
- should "stack" with prior invocations, ever accumulating more interfacesStrict
- should trump prior invocations ofCallsBaseMethods
,ConfigureFake
, andWrapping
WithAdditionalAttributes
- should "stack" with prior invocations, ever accumulating more attributesWithArgumentsForConstructor
- should trump prior invocationsWrapping
- should trump prior invocations ofCallsBaseMethods
,ConfigureFake
,Strict
, andWrapping
While writing characterization tests in #465, I noticed deviations, even when just setting competing options in the
A.Fake()
calls:I'd like to smooth out these deviations before extending
IFakeConfigurator
.I am very close to a PR (in the "cleanup" phase) that would build upon the work in #465.
The text was updated successfully, but these errors were encountered: