Drew Bourne
Drew Bourne
in order to better support binding for use in validators, and other MXML heavy contexts.
For classes that extend Proxy Mockolate should intercept all the flash_proxy methods in order to allow use of `expect()`. Currently users have to do this: ``` AS3 mock(proxyObject).nsMethod(flash_proxy, "callProperty").args("actualMethodName", arg1,...
When specifying expected arguments using `.args()` Mockolate should verify the argument count where possible. Example ``` AS3 public class ArgumentCountExample { public function methodNoArgs():void {} public function methodRequiredArgs(req1:Object, req2:Object):void {}...
Provide safe, override-able, default implementation for `toString()` Options to consider for `toString()`: - `""` Empty string - `[Example name="anExample"]` The class name and Mockolate instance name, - `[mockolate.generated::Example98EED12CF43BC047F3D1945E63B2D879D9C98057 name="anExample"]` The...
Something like: ``` mocks.addConstructorOverrideFor(NetStream, function(netStreamClass:Class, constructorArgs:Array):NetStream { var netConnection:NetConnection = new NetConnection(); netConnection.connect(null); return new netStreamClass(netConnection) }); ```
Add a section to the stubbing and mocking page about using Hamcrest matchers and how they interact with the Invocation for matching the arguments. Include examples of invocations that will...
By default make Mockolate log warnings for situations where it cannot create appropriate proxy methods. For example log warnings for each `public var` field in a class when passed to...
To aid diagnosis of invocation and expectation errors provide an API to access the invocations that were recorded by a Mockolate instance.
Report on `vars` with `[Mock]` must be public. Preparing an empty Array of classes throws an error. Don't do that.