typemock

Rhino mock vs Typemock vs JustMock vs [closed]

萝らか妹 提交于 2019-12-03 03:10:09
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I need to choose mock framework to new project. What are the pros and cons for those frameworks? Any comparison table? I know that

Rhino mock vs Typemock vs JustMock vs [closed]

瘦欲@ 提交于 2019-12-02 16:39:50
I need to choose mock framework to new project. What are the pros and cons for those frameworks? Any comparison table? I know that JustMock is i beta stage but it's look very good right now (very similar to TypeMock) Edit: I'v What about MS Mole? Dror Helper Before there was JustMock this question was asked and the answers can be found here . There is a very good Mocking framework comparison - it doesn't have JustMock yet but you get to see the syntax and capabilities of each .NET mocking framework. RhinoMocks (and Moq ) are both open source free to use projects that can create fake objects by

Mocking non-virtual methods in C#

∥☆過路亽.° 提交于 2019-11-30 13:59:50
问题 I'm trying to test some classes I've made using mocks, but I've seen all free mocking frameworks in c# aren't able to mock non-virtual methods (if it is not in an interface). But, there's TypeMock who can do this, so it is possible. Can anyone show how to do it? I may even try to contribute to an open source framework if I can get this done. Thanks in advance 回答1: I am from Typemock, and I won't address the "Too Powerful" comments (although it's beyond me why people wouldn't want to use the

EF4 - possible to mock ObjectContext for unit testing?

怎甘沉沦 提交于 2019-11-30 13:49:34
Can it be done without using TypeMock Islolator? I've found a few suggestions online such as passing in a metadata only connection string, however nothing I've come across besides TypeMock seems to truly allow for a mock ObjectContext that can be injected into services for unit testing. Do I plunk down the $$ for TypeMock, or are there alternatives? Has nobody managed to create anything comparable to TypeMock that is open source? I'm unit testing EF4 easily without mocking. What I did was create a repository interface using the code from http://elegantcode.com/2009/12/15/entity-framework-ef4

Mocking non-virtual methods in C#

你离开我真会死。 提交于 2019-11-30 08:53:23
I'm trying to test some classes I've made using mocks, but I've seen all free mocking frameworks in c# aren't able to mock non-virtual methods (if it is not in an interface). But, there's TypeMock who can do this, so it is possible. Can anyone show how to do it? I may even try to contribute to an open source framework if I can get this done. Thanks in advance user19930 I am from Typemock, and I won't address the "Too Powerful" comments (although it's beyond me why people wouldn't want to use the best tool for the job). Here's how Typemock Isolator works. Have you ever used a performance

What are the capabilities of Moq and Rhino.mocks?

*爱你&永不变心* 提交于 2019-11-29 19:12:36
I cannot find a specific feature-by-feature comparison of Moq and Rhino. All the questions are "which do you like better and why", or "here's how you do a simple mock in rhino and how it's done in moq". I cannot find a deep comparison anywhere. I'm aware of the syntax differences, I'm not looking for answers about that. I am looking for a capability comparison . For example: Rhino has Expect.On() for threaded mocking. Can Moq do this? What about Multi-mocking (implementing multiple interfaces with one mock). Can Moq do this? I believe Moq can now mock Protected members. Can Rhino do this? Edit

What are the capabilities of Moq and Rhino.mocks?

让人想犯罪 __ 提交于 2019-11-28 14:36:37
问题 I cannot find a specific feature-by-feature comparison of Moq and Rhino. All the questions are "which do you like better and why", or "here's how you do a simple mock in rhino and how it's done in moq". I cannot find a deep comparison anywhere. I'm aware of the syntax differences, I'm not looking for answers about that. I am looking for a capability comparison . For example: Rhino has Expect.On() for threaded mocking. Can Moq do this? What about Multi-mocking (implementing multiple interfaces

RhinoMock vs. TypeMock vs. NUnit's Mocking?

空扰寡人 提交于 2019-11-27 20:08:51
I am just starting to do Test Driven Development, and I am wondering the major differences between RhinoMock, TypeMock, and NUnit's built-in mocking? Any information would be greatly appreciated! TypeMock is a commercial product (meaning you'll have to pay for it) but will allow you to mock concrete objects - unlike RhinoMocks/NUnit/MoQ which can only mock an interface/abstract class. How it achieves this is borderline black magic, but it does some very clever things with the CLR. This can be particularly useful when you use libraries in your project that don't use many interfaces. So you

RhinoMock vs. TypeMock vs. NUnit's Mocking?

一世执手 提交于 2019-11-26 22:53:48
问题 I am just starting to do Test Driven Development, and I am wondering the major differences between RhinoMock, TypeMock, and NUnit's built-in mocking? Any information would be greatly appreciated! 回答1: TypeMock is a commercial product (meaning you'll have to pay for it) but will allow you to mock concrete objects - unlike RhinoMocks/NUnit/MoQ which can only mock an interface/abstract class. How it achieves this is borderline black magic, but it does some very clever things with the CLR. This