Moq. If you're new to mocking and TDD in general I can't think of an easier way to get started - simple, elegant library that does just enough. Generally I...
Haha Matt, a very interesting perspective I agree with (I'm pro-KISS too). So far nMock seems to be simple enough too. It doesn't obligate me to do fancy stuff...
nMock is probably the worst of all the mocking frameworks under .Net ... Rhino and Moq are both superior in every way ... Moq probably has the edge due to...
Apparently I can only mock interfaces in nMock. Are the other frameworks allowing me to mock classes too? Or I'm making a grave logic mistake by assuming this....
"Rhino Mocks supports mocking classes as well as interfaces. In fact, it can even mock classes that don't have a default constructor! " Nevermind, I answered...
Because if you need to mock a concrete class, your SUT must have a concrete dependency on that class- and this is a testability and maintainability issue ... ...
Well, I already learned how to use a mocking framework, but I'm reluctant to build so many interfaces. I know that my data layer is never going to change for a...
I'm curious about this approach as it would seem to alleviate some of the nuisance related to navigating from test project to 'actual' project during the usual...
you can mock classes with virtual methods using rhino mocks and moq, don't know about nmock. TypeMock can do what you need, i guess but i advise you to have...
rhino and moq will allow you to create fake instances of classes as long as they are not sealed, and you can fake methods that are virtual on those classes. if...
+1 - the docs are key. Rhino is a great framework but Casey hit the nail on the head - the simplicity of the Moq API plus the great docs will basically force...
Both Moq and Rhino Mocks use Castle project's DynamicProxy implementation for proxying types which means you can mock interfaces, abstract classes, and virtual...
... How to do it depends on the environment, but in almost all of the IDEs I've used, you can have separate projects into which you add either test source code...
... As some have mentioned most IDE’s will allow you to configure exactly what you want to deploy. I would just like to mention that some projects...
Hi, I've finished the maven plugin for trinidad, which enables you to run fitnesse fit/slim tests for java in process without starting the server and...
ReSharper means, I don't have any problems with navigation due to separate projects ... no other reason I can think of to combine them unless you want your...
It's very easy to create a solution with two projects. One project is tests, and the other is production, but both are open. There's no need to toggle...
Hello everybody. I am wondering how to do an Assert in nUnit when I got a method which returns a DataTable (or DataSet). There are C# classes which are usually...
... What are you trying to Assert? I get the impression that you've already written some code, without having first written a test, else you would not have a...
Brad Stiles
bradley.stiles@...
Feb 2, 2009 1:07 pm
30127
Brad - I think a more appropriate forum for NUnit-specific questions is the nunit-discuss mailing list: http://groups.google.com/group/nunit-discuss ... -- Min...
Olof Bjarnason
olof.bjarnason@...
Feb 2, 2009 1:35 pm
30128
My fault, sorry. I will. Brad: no, no code yet. But I will have a method which has to receive a DataTable parameter to be tested, you see? And depending on...
... How do you know you'll have a method that receives a DataTable and returns another? I'm not saying you won't need it, as I can imagine knowing that...
Brad Stiles
bradley.stiles@...
Feb 2, 2009 3:08 pm
30130
Brad/Axonn In Kent Becks book he uses the following rule of thumb, when writing a single unit test "Write the Assert first" So given the following [Test] ...
Olof Bjarnason
olof.bjarnason@...
Feb 2, 2009 3:16 pm
30131
But still nobody answered my original question ::- ). I also asked on the Google group but it seems a bit dormant. I suppose many of you tried to use nUnit...
... What do you want to assert about the data set? That it has a certain size? That it has certain values in its cells? Call the methods of the data set that...
Once upon a time, I wrote a system that manipulated DataTables and used that manipulation for testing. The result looks like this: [Test] public void...