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
2
votes
1 answer

Anyone know what does mb stand for in the mbunit?

Just a little bit curious, what does "MB" mean in "MBUnit"?
user705414
  • 20,472
  • 39
  • 112
  • 155
2
votes
1 answer

Unit test for private Func delegate method using MBUnit's Mirror

I would like to test the following class Private Func<> delegate method using MB Units Mirror.ForObject(). However it is not reflecting the method. Could any please provide a way to do this? Functionality Code class public class AccountTransaction …
manu
  • 1,807
  • 4
  • 25
  • 32
2
votes
3 answers

What unit testing framework will meet my requirements?

This is all i'm looking for at a high level: The ability to run unit tests from within visual studio 2008 Compatibility with some code coverage tool A unit testing framework with a row testing feature like MBUnit's RowTestAttribute Ability to…
jaminto
  • 3,895
  • 3
  • 32
  • 36
2
votes
3 answers

Using MbUnit3's [Rollback] for unit testing NHibernate interactions with SQLite

Background: My team is dedicated to ensuring that straight from checkout, our code compiles and unit tests run successfully. To facilitate this and test some of our NHibernate mappings, we've added a SQLite DB to our repository which is a mirror of…
antik
  • 5,282
  • 1
  • 34
  • 47
2
votes
1 answer

how to add MBUnit test to CruiseControl.Net config file

how to add MBUnit(tag) test to CruiseControl.Net config file. Thanks, Raja S
Raja
2
votes
1 answer

MbUnit - Getting test failure/success result in TestFixtureTearDown

I am using MbUnit for some integration tests. In the TestFixtureSetUp, I create a new instance of a database (using a GUID as the DB name). In the tear down, I delete it. However, if tests fail, I want to keep the database alive (so I can…
Paul Stovell
  • 32,377
  • 16
  • 80
  • 108
2
votes
1 answer

Merging MbUnit and NUnit tests and displaying in CruiseControl

We have a CruiseControl server running various AntUnit, MbUnit and NUnit tests via Ant. In order to merge the outputs from them all we have the following in the CruiseControl config:
Simon Brangwin
  • 858
  • 1
  • 7
  • 15
2
votes
1 answer

Migrate selenium Nunit tests to MBunit for parallel execution

I am trying to migrate my existing selenium tests with Nunit to MBunit so that I can run the tests in parallel using selenium grid. I've added the attributes [assembly: DegreeOfParallelism(8)] [assembly: Parallelizable(TestScope.All)] to…
vamyip
  • 1,161
  • 1
  • 10
  • 35
2
votes
4 answers

Skip unit test if csv file not found

I have a number of unit tests which rely on the presence of a csv file. They will throw an exception if this file doesn't exist obviously. Are there any Gallio/MbUnit methods which can conditionally skip a test from running? I'm running Gallio 3.1…
Longball27
  • 676
  • 1
  • 8
  • 29
2
votes
1 answer

How to set execution path in MbUnit?

Is there any way to set an execution path for the tested DLL so it can find resource folders when MbUnit copy files into a temporary folder without using Dependency Injection? Trying to put these extra files as content and set behaviour to copy did…
sloughk
2
votes
3 answers

Unit Testing: hard dependency MessageBox.Show()

What ways can the SampleConfirmationDialog be unit tested? The SampleConfirmationDialog would be exercised via acceptance tests, however how could we unit test it, seeing as MessageBox is not abstract and no matching interface? public interface…
Sean B
  • 343
  • 3
  • 9
2
votes
4 answers

How does MbUnit work with VS 2008

I set up MbUnit and have been trying to get it to work with VS 2008 using the MbUnit GUI but every time I run a test it closes and I get a this program needs to close error. I had a similar problem with Gallio where I got a runner exception every…
Calum
2
votes
2 answers

Can not run MBUnit unit tests, there is no run button/menu

I have installed MBUnit and Gallio via nuget package, but there is no context menu or button where I can say run tests etc... Do I still have to install something?
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
2
votes
1 answer

Is there a way to combine two C# Attributes into one?

This may seem like a weird question, but it's actually not too crazy with my situation. I'm currently building a test framework that performs Selenium UI testing on a web platform, and all is working very well, but due to requirements, we ended up…
DizWARE
  • 21
  • 2
2
votes
1 answer

Are there any alternate sources for Gallio Documentation?

Gallio used to have its documentation at http://www.gallio.org/Docs.aspx , but they moved the project to a github repository which doesn't have documentation in either the Wiki or the Readme. The documentation that used to serve at the code.google…
Toshinou Kyouko
  • 334
  • 9
  • 21