mspec
How do I AssertWasCalled a generic method with three different types using RhinoMocks?
I\'m trying to learn Rhino Mocks AAA syntax, and I\'m having trouble asserting a certain method (with any argument value) was called. I\'m using Machine.Specifications as my testing framework.[详细]
2023-01-26 03:37 分类:问答Changing resharper settings to suit mspec coding
When I create a new test like the following: It should_get_something = () => foo(); When I hit the semi开发者_StackOverflow-colon resharper sticks private on the front of the delegate:[详细]
2023-01-25 06:49 分类:问答Comparing two lists with MSpec
Which method should I use to assert that two lists contai开发者_如何学Pythonns the same objects with MSpec?You could use the ShouldContainOnly(IEnumerable<T>) extension method.[详细]
2023-01-22 21:37 分类:问答MSpec in Visual Studio 2010 still does not work properly
Someone asked a similar question before, getting the following error when I run MSpec in Visual Studio 2010:[详细]
2023-01-20 23:36 分类:问答MSpec and ReSharper Problem
I\'ve got the latest mspec from the codebetter teamcity site and installed the Resharper5.1 runner as suggested.The runner and the annotations show up fine in the resharper option dialogs.[详细]
2023-01-17 12:03 分类:问答Cannot run mspec.exe with Syste.Data.SQLite.dll x86, but it works in R# MSpec runner
I use mspec for my tests and have a NHiernate Setup using SQLite x86 for my database in the tests. The problem is that when i run my test using the mspec r# runner everything works fine but running it[详细]
2023-01-17 10:19 分类:问答Using Behaves_like<TBehavior> on a Base Class
I would like to specify a Behaves_like on a base specification to ensure that a particular method is marked as virtual. Something like this:[详细]
2023-01-11 03:07 分类:问答BDD with Machine.Specifications in Visual Studio 2010
I\'m beginning to get the grips of BDD and MSpec, but I\'m still really bugged by the fact that I\'m unable to debug my tests/specs, and that I have to leave the IDE to go to a html report file to see[详细]
2023-01-04 16:44 分类:问答Can I "inherit" a delegate? Looking for ways to combine Moq and MSpec without conflicts around It
I have started to use MSpec for BDD, and since long ago I use Moq as my mocking framework. However, they both define It, which means I can\'t have using Moq and using Machine.Specifications in the sam[详细]
2022-12-31 01:57 分类:问答DRY-ing very similar specs for ASP.NET MVC controller action with MSpec (BDD guidelines)
I have two very similar specs for two very similar controller actions: VoteUp(int id) and VoteDown(int id). These methods allow a user to vote a post up or down; kinda like the vote up/down functional[详细]
2022-12-30 12:20 分类:问答
加载中,请稍侯......