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

MbUnit Gallio WatiN Right-Click Testing on a link

I want to test right click on a link by using MbUnit, Gallio and WatiN. Currently I can not see what is the way to do that. It seems that there is no method for right click which I can call from the framework. I am sure that there is a workaround,…
Velchev
  • 49
  • 5
0
votes
2 answers

How To Centrally Initialize an IOC Container in MbUnit?

We currently have a suite of integration tests that run via MbUnit test suites. We are in the process of refactoring much of the code to use an IOC framework (StructureMap). I'd like to configure/initialize the container ONCE when the MBUnit test…
Phil Sandler
  • 27,544
  • 21
  • 86
  • 147
0
votes
1 answer

Test data source in MBUnit like in NUnit

How can I annotate my MBUnit test with a test data source attribute like in NUnit: Pseudocode like its in NUnit: [TestCaseSource("GetData")] public void Test(int value) { } private static IEnumerable GetData() { yield return 1; yield…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
0
votes
1 answer

Debug Unit Tests using Resharper 7 for MBUnit throws an exception

I have installed the Gallio Resharper Test Runner found at http://code.google.com/p/mb-unit/issues/detail?id=900#c9 Per the instructions at How to support MBUnit tests in Resharper 7. When I right click inside of a unit test and click "Run Unit…
Barka
  • 8,764
  • 15
  • 64
  • 91
0
votes
3 answers

How do I get Team Build to run MbUnit tests?

I am having trouble getting Team Build to execute my MbUnit unit tests. I have tried to edit TFSBuild.proj and added the following parts:
Geir-Tore Lindsve
  • 1,147
  • 1
  • 17
  • 27
0
votes
1 answer

Display Gallio reports on CruiseControl.Net

I am setting up a CruiseControl.Net build server. My project compiles, and runs unit tests. In my ccnet.config I have this: C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
thomasb
  • 5,816
  • 10
  • 57
  • 92
0
votes
2 answers

Is this mbunit test really doing anything significant?

[Test] public void TestUserProfileInsert() { using (new TestBindingsWrapper("TestBindings", "", new TestModule())) { // Setup the mock the dataprovider MyMocks.MockDataProvider.Setup(x =>…
user179764
  • 61
  • 1
  • 2
0
votes
1 answer

MbUnit: How to notify a routine under test that it was called from the testing environment

I have a routine that reads directory information from the registry. If called from the test environment it needs to return one location (a test data directory). If not called from the test environment it needs to return another location (where…
0
votes
1 answer

How to get test result in MBUnit

I use MBUnit and Gallio. I want to take screenshot if test resul is fail of browser before it will be closed (I use WebDriver with c#). How I can get test result in test?
user1590561
  • 583
  • 2
  • 6
  • 17
0
votes
1 answer

MbUnit: Run code after all fixtures have been run

I'm using MbUnit + Gallio. I know that MbUnit has attributes which can be applied to methods which should run: [FixtureSetUp] - before each fixture [FixtureTearDown] - after each fixture [SetUp] - before each test [TearDown] - after each test But,…
trickbz
  • 945
  • 1
  • 9
  • 25
0
votes
1 answer

Gallio unit test startup code

This is going to be an amateur level question. Is there a way to add start up code to a test project that uses MBUnit 3.4.0.0? I tried adding [TestFixture] and [FixtureSetUp] attributes to code that I wanted to run first, but unfortunately that…
developer747
  • 15,419
  • 26
  • 93
  • 147
0
votes
1 answer

Assert throws ObjectDisposedException even though TextWriter is not used

I have a unit test that is throwing an ObjectDisposedException for a method that used to be using a TextWriter, but no longer is. I've tried cleaning the solution and rebuilding, but can't seem to figure out why I'm still getting the exception. …
areyling
  • 2,181
  • 2
  • 20
  • 25
0
votes
1 answer

Visual Studio .NET - MbUnit tests using Gallio Integration - issues with multiple asserts

I am using gallio to integrate mbunit's test runner with the mstest test runner in visual studio. it works VERY well - except when I am running a test with multiple assert statements. The test will either pass or fail based on the FIRST assert…
Jason Irwin
  • 1,985
  • 2
  • 29
  • 42
0
votes
0 answers

Using Visual Studio generated SOAP service reference in multithreaded testing (MBUnit)

I have written MbUnit tests which consume a SOAP service via a client generated by "Add service reference" in VS 2010. The tests are run in parallel by using the DegreeOfParallelism attribute, and therefore have up to 10 tests running at once, each…
Robbie Wareham
  • 3,380
  • 1
  • 20
  • 38
0
votes
1 answer

PostSharp vs. MbUnit: TypeLoadException

I have a small solution with an WPF GUI project, some business logic in library projects and test projects using MbUnit/ Gallio. Everything worked fine so far. After I added PostSharp Diagnostics Toolkit for Log4Net in it's current version 2.1.6.4…
Silas
  • 1,140
  • 11
  • 12
1 2 3
16
17