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.
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:
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.
Someone asked a similar question before, getting the following error when I run MSpec in Visual Studio 2010:
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.
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
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:
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
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
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