Questions tagged [mbunit]

MbUnit is a generative unit test framework for the .NET Framework.

MbUnit provides advanced unit testing support with advanced fixtures to enable developers and testers to test all aspects of their software.

There are two current versions of MbUnit, v2 and v3.

MbUnit v3 is the current version of the MbUnit Framework. It is based on the Gallio Test Automation Platform which provides a stunning array of interoperable test tools. MbUnit v3 has been rewritten from the ground up to provide a compelling suite of testing features, native support for .NET 2.0 and .NET 3.5, better documentation, and cross-platform compatibility with Mono.

MbUnit v2 is the older version of the MbUnit Framework. It is still actively maintained for the benefit of existing users.

248 questions
4
votes
2 answers

Does MBUnit support Resharper 6?

Resharper 6 has just been released. I'd love to update, but MBUnit support was still broken the last time I tried an EAP. Is MBUnit working with Resharper 6 now? Thanks, Adrian
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
4
votes
3 answers

Can VS2008 Testrunner run MbUnit tests or not?

Ok, so I keep seeing how VS2008 has this nice unit test display and I can see people running NUnit tests within it on Dimecasts.net and this article seems to imply that MbUnit v3 should have support for using visual studio's test runner. And yet I…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
4
votes
2 answers

Is there an MBUnit attribute to run Row tests in the order they were defined

I've tried googling around for this but have found nothing. Basically, I'd like to run each row in the order I defined it. For example, if I have this: [Row("a")] [Row("b")] [Row("c")] [Test] public void Test(string s)... I want to be sure that…
LJM
  • 6,284
  • 7
  • 28
  • 30
4
votes
2 answers

How to unit test my project against different versions of external dll api?

I am developing an app that relies heavily on an external dll, my app needs to support new versions of the dll as well as being backwards compatible with the old ones. Are there any good ways to have my unit tests target all of these different dll…
devghost
  • 560
  • 7
  • 13
4
votes
2 answers

Does the ReSharper unit test runner run tests sequentially or in parallel with MbUnit?

Does the ReSharper unit test runner run tests sequentially or in parallel (and then, is each test in a separate thread)? I am using MBUnit test framework.
Kostas
  • 303
  • 1
  • 3
  • 6
4
votes
4 answers

VS 2010 and MBUnit how to run just one test

I have Gallio/MbUnit installed and am using VS 2010 RC and I want to be able to run a single unit test or just all unit tests inside of a TestFixture and not all the tests in the entire project everytime I debug. How do you do this in VS 2010?
runxc1 Bret Ferrier
  • 8,096
  • 14
  • 61
  • 100
4
votes
3 answers

Choosing a test platform for .NET - MbUnit or the one by Microsoft?

I have chosen these two as primary candidates. My thinking goes like this: MbUnit has had a nice start and enjoys a smart, dedicated team of developers. MSFT has many resources and can compete with MbUnit easily if they choose to do so. Which one…
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
4
votes
2 answers

Rhino Mocks, MbUnit: Best way to check if object has raised an event

I have an object that I'm testing that raises an event. What is the best way of using Rhino Mocks to check that it was raised? Best I could come up with (I am certain it gets better than this): public void MyCallback(object sender, EventArgs e) {…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
4
votes
2 answers

How to use AOP from DI Frameworks With C# TestFrameworks? (NOT for the item under test)

My apologies in advance for a terrible title- suggestions welcome! I've been reading about DI and AOP, and I think I grasp the basics; at least for the canonical example of adding logging. I would like to apply this to the test cases we've been…
JulianRendell
  • 93
  • 1
  • 4
4
votes
4 answers

MbUnit: Comparing distinct object instances

I'd like to know whether there is a way to compare two objects in MBUnit so that the test is passed when the objects "look" the same, even if those are distinct instances? For example: [TestFixture] class ComparisonTestFixture { class foo …
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
4
votes
3 answers

UsingFactories alternative in MbUnit v3

I am trying to figure out how to write combinatorial test in MbUnit v3. All of the sample code on the web refers to MbUnit v2, which means using 3 attributes: CombinatorialTest Factory UsingFactories In MbUnit v3 there is no UsingFactories…
mark
  • 59,016
  • 79
  • 296
  • 580
3
votes
6 answers

TestDriven.Net doesn't find tests

I have a test project using MbUnit and TestDriven.Net. If I right-click on an individual test method and say "Run Tests" the test runs successfully. Same thing if I click on a file name in the solution explorer. However, if I right click and…
brien
  • 4,400
  • 4
  • 30
  • 32
3
votes
2 answers

Hover over an element using WatiN

I work on a suite of automated tests that have been developed using WatiN and MBUnit. I've heard that it's possible to get WatiN to 'hover' over an element, but I can't seem to get it working using the methods I've used in the past. Is there another…
Jen Bandelin
  • 193
  • 2
  • 12
3
votes
1 answer

How to re-run the same test with same data in MbUnit

Say, I have the following test: [Test] public void MyTest( [RandomNumbers( Count=100, Minimum=0, Maximum=1000 )] int number ) { ... } And at some point, during my regular build process, it has failed. I got an e-mail…
Fyodor Soikin
  • 78,590
  • 9
  • 125
  • 172
3
votes
2 answers

Using app.config in MBunit test

The way I have my unit test set up is that a user can run the executable and select a dataset to use. This information is stored in app.config, however when I try to access app.config when running the unit test with Gallio Icarus it doesn't…
Reflux
  • 2,929
  • 4
  • 26
  • 27