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

What's a good way to debug unit tests written with multiple [Row] attributes?

When I run the following test in Gallio's Icarus it passes, but when I step into it using TestDriven.NET (Test With->Debugger), it fails because the parameters are not set according to the Row attributes. I was expecting that the method would be…
Dave
  • 1,081
  • 1
  • 9
  • 18
0
votes
2 answers

Unit testing a method with no observable state change

(C#, Rhino Mocks, MbUnit). I have a class called AccountManager that has a RegisterUser() method. This method returns void but does throw an exception for any errors. AccountManager calls into an IDataRepository calling its AddUser() method to do a…
Simon Rigby
  • 1,786
  • 4
  • 17
  • 28
0
votes
1 answer

How to pass Xml data as a parameter to a Test in mbunit v3

I was reading about data driven testing using mbunit from this article. http://blog.benhall.me.uk/2007/04/mbunit-datafixture-data-driven-unit.html I am using v3 of mbunit now and the attributes used for DataDriven testing are Not applicable in V3 as…
Tulika
  • 360
  • 5
  • 16
0
votes
2 answers

MbUnit Integration Testing Newbie Question

I've been tasked with integration testing of a large system. Presently, I have a COM dll that I'm testing useing a UI that I created that kicks off a series of unit tests that call into the dll. This works, but I'm wanting to migrate this over to…
DanielPass
0
votes
1 answer

Azure web role project not creating MbUnit test project?

We're creating an Azure cloud service project in VS 2010 with an ASP.Net MVC 2 web role. When we create the MVC project we're asked if we want to create a test project. Our choices are MbUnit3 (our preference) and MS Test. When we select MbUnit, a…
larryq
  • 15,713
  • 38
  • 121
  • 190
0
votes
1 answer

Testing using MBUnit and Selenium

I am trying to build small test case using selenium with MB-Unit Framework. I have written the test case for testing in that am just redirecting to http://www.google.com and searching for "firefox browser". At the time when am running the test case…
Chetan Bodke
  • 523
  • 6
  • 28
0
votes
1 answer

What are the minimum binaries needed to run Gallio with MbUnit tests

We recently upgraded our application to .Net 4.0. We were using MbUnit 2.x. With the upgrade to .Net 4.0 the MbUnit tests don't seem to run. Rather than fighting with it I decided to upgrade to MbUnit v3 which ships with Gallio test runners. I would…
PilotBob
  • 3,107
  • 7
  • 35
  • 52
0
votes
1 answer

MBUnit - Calling the same method multiple times in a sequence?

Is there a way in MBUnit to have the same test called multiple times with different parameters in a sequence, as such: Method1() Method2(param A) Method3() Method2(ParamB) Method4() Method2(ParamC) etc? I've tried using the Order parameter but sadly…
MHTri
  • 910
  • 2
  • 10
  • 30
0
votes
1 answer

Tests run in Gallio / MbUnit fail; unable to load Castle DynamicProxy

I have a .NET 3.5 assembly covered by around 4000 MbUnit tests. I hve been running these using the mbunit.cons.exe program with no trouble. Now I am trying to switch to Gallio (mbunit.cons.exe started blowing up with an 'out of memory' exception…
andypaxo
  • 6,171
  • 3
  • 38
  • 53
0
votes
0 answers

Can I Tell mbunit that one of the row cases is expected to fail?

I have a unit test, something like this: [Test] [Row(1)] [Row(2)] [Row(3)] //This value is expected to fail public void Test_MyMethod(int value) { Assert.IsTrue(MyMethod(value)); } Okay, this is an extremely simple test, but, assume MyMethod…
LocustHorde
  • 6,361
  • 16
  • 65
  • 94
0
votes
1 answer

Gallio error when tests are run via TeamCity: "Possible causes include invalid test runner parameters and stack overflows"

When running MbUnit (3.4.14.0) tests via TeamCity (8.0.2 build 27482), I got the error: [Error] A fatal exception occurred while running tests. Possible causes include invalid test runner parameters and stack overflows. Gallio.Model.ModelException:…
0
votes
1 answer

Code Coveragein Separate Solutions

(I posted this question on NCrunch forum but I've not received a response in 3 days.) I just downloaded, installed, and enabled NCrunch. I'm using: VS 2012, Gallio, MbUnit. I've a main solution with several projects. At this point I want to test…
CoolBreeze
  • 381
  • 4
  • 14
0
votes
1 answer

Debugging in the subchild process doesn't work

I write the plugins for AutoCAD. But it is unpossible to write the unit tests for AutoCAD plugins as the MS Visual Studio tests. Because they must work in the acad.exe process. For solving its problem I use Gallio. It has own plugin for testing of…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
0
votes
1 answer

Running MbUnit tests within Visual Studio 2010, ReSharper 6, TestDriven.NET

I want to run a Hello World MbUnit test within VS 2010, like below: using Gallio.Framework; using MbUnit.Framework; using MbUnit.Framework.ContractVerifiers; namespace ClassLibrary1 { [TestFixture] public class TestFixture1 { …
Pingpong
  • 7,681
  • 21
  • 83
  • 209
0
votes
1 answer

Setting up MbUnit for ASP.NET MVC

I am using Visual Web Developer 2008 Express with ASP.NET MVC 1.0. I would like to use MbUnit as a test framework so how would I set this up as a unit test project for an ASP.NET MVC web application?
Jim
  • 669
  • 2
  • 7
  • 7