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
9
votes
3 answers

How to debug mbunit/Gallio unit tests in visual studio

I am trying to figure out how I can hit breakpoints in my unit tests that are written with MbUnit/Gallio. I tried running Gallio.Icarus, attaching vs debugger to it, the breakpoints weren't hit. Next I tried to start Gallio.Echo from project…
laconicdev
  • 6,360
  • 11
  • 63
  • 89
9
votes
4 answers

TestDriven.net with Gallio, MbUnit and NCover problems

Why doesnt TestDriven.Net work with my gallio/mbunit tests? I've used TDD.Net with MbUnit v2 and not had any problems, but with the new gallio release on my new pc, it does nothing. From the tdd right click menu in solution explorer, if i do "test…
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
9
votes
3 answers

How exactly do MbUnit's [Parallelizable] and DegreeOfParallelism work?

I thought I understood how MbUnit's parallel test execution worked, but the behaviour I'm seeing differs sufficiently much from my expectation that I suspect I'm missing something! I have a set of UI tests that I wish to run concurrently. All of the…
BenA
  • 2,041
  • 1
  • 20
  • 25
9
votes
1 answer

NUnit's [TestCaseSource] with multiple arguments like with MbUnit's [Factory]

Is it possible to use NUnit's [TestCaseSource] attribute with more than one arguments? Here's my code (which is being migrated from MbUnit): public IEnumerable GetTestSwitchMultiItems() { yield return new object[] { SwitchType.Sell,…
evg02gsa3
  • 571
  • 5
  • 17
9
votes
2 answers

Can a Gallio/MbUnit Test be Ran without Installing Gallio?

I've installed TestDriven.Net in Visual Studio 2008 and when I run a mbunit test from TD.Net I get this message: It looks like you're trying to execute a Gallio/MbUnit unit test. For Gallio v3.0.6 build 787 / Gallio v3.1 build 313 or above…
stung
  • 347
  • 5
  • 13
  • 27
8
votes
6 answers

Any way to ignore Possible Null Reference Exception warnings when using Assert statements?

I do not want to disable the warnings completely, just when it's in an Assert statement. So for example if I have the following two lines var someObject = GetObject(); Assert.IsNotNull(someObject, "someObject should not be…
Brandon
  • 68,708
  • 30
  • 194
  • 223
8
votes
7 answers

My ReSharper Gutter Icons for Unit Tests aren't showing

I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the…
Lance Fisher
  • 25,684
  • 22
  • 96
  • 122
8
votes
3 answers

Gallio test runner plugin to Visual Studio 2008 and 2010 for MBUnit tests

If I install Gallio 3.x will it also install a test runner plugin for Visual Studio? Or must I use an additional plug-in like TestDriven.NET or Visual Nunit to run MbUnit test classes from within VS?
netmajor
  • 6,507
  • 14
  • 68
  • 100
7
votes
2 answers

Asynchronous tests in VSUTF, NUnit, xUnit.NET, MbUnit vs. SUTF?

Silverlight Unit Test Framework has an [Asynchronous] attribute (AsynchronousAttribute) that causes the tests to only end when EnqueueTestComplete() gets called. This allows for a simple way to write tests that need to wait for an event to occur…
Filip Skakun
  • 31,624
  • 6
  • 74
  • 100
7
votes
2 answers

MbUnit's row attribute in NUnit?

While reading an Asp.Net MVC code sample that used MbUnit as it's testing framework, I saw that it was possible to run a single test against multiple input possibilities by using a Row attribute, like…
Mayowa Ayinde
  • 191
  • 3
  • 10
7
votes
2 answers

How to programmatically run unit tests with Gallio and MBUnit?

I'm trying to programmatically check my unit tests are passing as part of my deployment process. The application uses MBunit and Gallio for it's unit testing framework. Here's my code: var setup = new…
Liath
  • 9,913
  • 9
  • 51
  • 81
7
votes
5 answers

MSTest and NHibernate

Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass.
Webjedi
  • 4,677
  • 7
  • 42
  • 59
7
votes
2 answers

How to support MBUnit tests in Resharper 7

Since I upgraded to VS2012, my R#5 license was not useful anymore. After downloading the R#7.0.1 and installing I realized that MbUnit no longer had builtin support for R#7. Since I spent some time figuring out how to get the plugin running, I will…
7
votes
5 answers

Resharper running all tests when only a single one is selected

I'm using Resharper 4.5 with Visual Studio 2008 and MBUnit testing, and there seems to be something odd with using ReSharpher to run the tests. On the side there are the icons beside the class each test method with the options Run and Debug. When I…
Brandon
  • 68,708
  • 30
  • 194
  • 223
6
votes
2 answers

Does Resharper 6.1 work with MBUnit?

Unfortunately Resharper has a long history of breaking MBUnit support with every new release. I noticed version 6.1 has been released, but I can't use it until it works properly with MBUnit. So, does Resharper still work with MBUnit? I'd try it…
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
1
2
3
16 17