If I use prepare() on an interface, then create an instance with it with strict(), and use it as a parameter to expect(), I get an error when I run it that there is
no expectation defined for the method. For example, in the code below, you'd get an error saying that there is no expectation defined for IFoo.bar() . Is this a bug in Mockolate or am I doing something incorrectly?
[Before(async, timeout=5000)]
public function prepareMocks():void
{
Async.proceedOnEvent(this, prepare(IFoo), Event.COMPLETE);
}
[Test]
public function executeTest():void {
var foo:IFoo = strict(IFoo);
expect(foo.bar());
}