Поиск лучшей платформы Насмешки открытого исходного кода для .NET

Я бы лично порекомендовал вам попробовать https://owlcarousel2.github.io/OwlCarousel2/demos/demos.html

, так как у него так много свойств, с помощью которых вы можете достичь ваши требования. Я надеюсь, что это поможет вам

5
задан Micah 30 April 2009 в 15:55
поделиться

4 ответа

Moq является наиболее продвинутым. Он использует все возможности .NET 3.5 и C # 3.0. Это было бы интересно:

7
ответ дан 18 December 2019 в 07:32
поделиться

I'm also using RhinoMocks. I particularly like the AAA (Arrange-Act-Assert) pattern. RhinoMocks makes it easy to set up expectations and check them using this pattern. The syntax uses lambdas and chaining, which fits in very well with LINQ. The similarity in syntax helps with understanding and allows the code to be more compact. the only issue I have with it, and it's not huge, is that in order to mock a method it needs to be virtual. In a sense this is good because it "forces" you to refactor to interfaces, but it can be a pain if an interface isn't really required. It can make mocking some framework classes more difficult. You can get around this by marking your class methods virtual or, with framework classes, creating a wrapper that you mock instead. I don't think these issues are unique to RhinoMocks.

3
ответ дан 18 December 2019 в 07:32
поделиться

I like RhinoMocks, but it's the only one I've used :}

This looks promising: http://code.google.com/p/mocking-frameworks-compare/

3
ответ дан 18 December 2019 в 07:32
поделиться

Я использовал NMock и считаю его отличным. http://www.nmock.org/

Однако - это единственный, который я использовал.

0
ответ дан 18 December 2019 в 07:32
поделиться
Другие вопросы по тегам:

Похожие вопросы: