@Dan - We use mock-as3 at work and really like it. It's an
expectation based library rather than a record/playback model like
asmock, which I prefer. That being said, if you're using RhinoMocks
then asmock may be more up your ally; mock-as3 is more like moq in
some ways but w/o the focus on lambdas. I think asmock has dynamic
runtime subclassing available which will give you a more familiar
experince. I know that mock-as3 is working with the loom project to
get this feature in the next release. The guy who wrote mock-as3 has
also writen a port of the Hamcrest matching library from the Java
world that you may find helpful as well. Below are the links to the
projects mentioned for what it's worth:
mock-as3 -
http://code.google.com/p/mock-as3/
loom-as3 -
http://code.google.com/p/loom-as3/
hamcrest-as3 -
http://github.com/drewbourne/hamcrest-as3/tree/master
You're going to find that a lot of tools from the .NET world such as
AOP, mocking, etc aren't available in the same robust manner that your
acustom. There is a lot of work being done, including with this
library, to updated these tools, but they're all still works in
progress (due for completion soon). We've found ourselves living with
a bit of boiler plate for things like testing while we wait/build new
tools.
Hope this helps.
-Brian