misprintt/mockatoo — pull request #4 by misprintt (2012-10-28 23:57:21+00:00)
Title: Added support for generating typedef instances using mock()

Mockatoo can also generate an object from a typedef structure.

Firstly, define a typedef

typedef SomeTypedef =
{
name:String,
foo:Void->Void
}

Then Create an instance using mock()

var mock = Mockatoo.mock(SomeTypedef);

Limitations

- generate object is not an instance of mock, therefore no support for verification or stubbing