tag:blogger.com,1999:blog-804807863784809914.post3149835251894176492..comments2024-03-28T09:46:41.753+01:00Comments on Legend and truth: Introducing Legend.FakesPatrik Hägnehttp://www.blogger.com/profile/09722697680972465898noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-804807863784809914.post-47154624437419857092009-08-24T09:07:22.444+02:002009-08-24T09:07:22.444+02:00I have looked at it yes, not very much though. It ...I have looked at it yes, not very much though. It seems to have a lot of the features I want, but I don't like the model of a mock object that isn't the fake itself.<br /><br />In moq:<br />var mock = new Mock{IFoo}();<br />IFoo foo = mock.Object;<br /><br />In FakeItEasy:<br />var foo = A.Fake{IFoo}();<br /><br />This is not something huge ofcourse.<br /><br />But then as I write, the main reason for me to do this is as a learning experience, I want a "playground" for trying out new features for mock frameworks, if I come up with something good, who knows, maybe I'll get a chance to contribute to Moq.<br /><br />FakeItEasy supports VB.net way better than Rhino.Mocks, I'm not sure how support is for VB in Moq.<br /><br />I also wanted the avoid the words "Mock" or "Stub" anywhere in the framework.<br /><br />Another thing I've done is to remove expectations all together.<br /><br />Extensibility is a huge thing. You can create your own ArgumentValidations in my framework and since the Argument.Is-property can be extended with extension methods your custom validations look no different to the framework validations.<br /><br />I quite like the wrapping feature I blogged about, I haven't found that in any other framework.<br /><br />There are other features coming up that I haven't seen anywhere else as well.<br /><br />All that being said, I'd encourage anyone to use Rhino.Mocks or Moq, I would encourage no one to use FakeItEasy as it is right now, it's in alpha and I think it will stay in alpha for quite some while.<br /><br />Cheers,<br />PatrikPatrik Hägnehttps://www.blogger.com/profile/09722697680972465898noreply@blogger.comtag:blogger.com,1999:blog-804807863784809914.post-68925490831286715342009-08-24T01:38:28.236+02:002009-08-24T01:38:28.236+02:00Have you ever looked at Moq? ;-)Have you ever looked at Moq? ;-)kzuhttps://www.blogger.com/profile/13889276248119153071noreply@blogger.com