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

Convert modelstate validation strings to array of objects

Still not comfortable with all the enumerables out there. I'm trying to do this: Assert.IsTrue(actionResult.ViewData.ModelState.IsValid, null, Enumerable.ToArray(actionResult.ViewData.ModelState as IEnumerable)); It's an mbUnit…
Martin
  • 2,956
  • 7
  • 30
  • 59
0
votes
1 answer

Run MsTest script from within a .Net Step Definition

let me start with some project background: I'm using .Net with Specflow and MsTest. The application I'm working on tracks a customer complaint through numerical stages. So far I've been using Specflow to automation the QA test cases through these…
Benny Meade
  • 602
  • 10
  • 25
0
votes
1 answer

How to test new Object within a function using RhinoMocks and mbunit

I am trying to test the below method using RhinoMocks and MbUnit however I am unable to get the test to pass. The current error is when the expect call for "" is not found. The function is in vb.net and the test is in c# Public Function Login(user…
adamias
  • 77
  • 11
0
votes
1 answer

how to specify a setup method should only be run once for all tests in mbunit?

so far, the SetUp property specifies the setup method should be run once before every test method, is there a property can specify the setup method should be run only once for all test method?
Benny
  • 8,547
  • 9
  • 60
  • 93
0
votes
0 answers

C# Gallio/MBUnit common setup assembly

My solution has many projects. Most projects in the solution will have associated unit test projects. I have created a UnitTestCommon project to act as a stand alone assembly with a local database and setup methods to refresh its data by parsing…
chdev77
  • 505
  • 4
  • 18
0
votes
1 answer

Run mbunit 3.1 tests in resharper 4.5

I have earlier used mbunit 2 and with this plugin I could get my tests to run in the resharper test dialog. Now with mbunit 3.1, I read that I didn't need any external plugin. So I donwloaded Gallio and got the new MbUnit.dll. Added a reference to…
Allrameest
  • 4,364
  • 2
  • 34
  • 50
0
votes
2 answers

Unit Testing forms and Events in c#

I want to write Test cases for C# code that triggers events or displays a form to user for input e.g.: private void CreateRecord_Click(object sender, EventArgs e) { try { this.InitiateRecording(); } catch (BubbleUiException…
priya
  • 852
  • 18
  • 39
0
votes
1 answer

Exception while invoking a test driver

Error loading SomeGallioTestProject.dll: An exception occurred while invoking a test driver. I have this visual studio 2010 solution which contains to separate test projects. They use MBUnit and Gallio for the test framework. Previously both test…
sweetfa
  • 5,457
  • 2
  • 48
  • 62
0
votes
1 answer

Incorrect TestOutcome status in Teardown when created from StaticTestFactory

Using MbUnit, I create tests using several StaticTestFactory methods, each having corresponding test setup and teardown methods. A requirement is to log test results to an external system, especially failed ones. However, I am unable to get the…
Faiz
  • 3,216
  • 1
  • 19
  • 25
0
votes
1 answer

Run OpenCover, Gallio, MbUnit under Bamboo?

I have a C# project that I have used OpenCover and Gallio to run the MbUnit UnitTests from Nant script. I'm trying to set this up in Bamboo. I see Bamboo has NUnit runner, but doesn't seem to have anything for MbUnit. Any idea how one would run…
Orn Kristjansson
  • 3,435
  • 4
  • 26
  • 40
0
votes
1 answer

Running mbunit test cases from commandline

I have to execute the mbunit test cases by passing the dll to gallio.echo. ( or using anything that may execute test cases through commandline and generates xml report ) My requirement is my dll depends upon the functions inside another dll so do i…
priya
  • 852
  • 18
  • 39
0
votes
1 answer

How to show mbunit/gallio TestLog or Console output in Jenkins?

I'm using Gallio/MbUnit framework for my web testing, and the tests are kicked off from Jenkins. I've installed the Gallio/MbUnit plugin and it's publishing the xml report. I'm trying to find a way to display test log or console messages in the…
Sean
  • 282
  • 3
  • 11
0
votes
1 answer

Gallio Icarus: Sort tests in Test Explorer according to Test.Order or DependsOn attributes

Gallio + MBUNIT are used. I have rather big test fixtures, which consist from 30-40 test. Test run in the the order defined using [Test(Order=)] attribute, also [DependsOn()] is used to don't run next test if previous failed. If open the DLL in the…
trickbz
  • 945
  • 1
  • 9
  • 25
0
votes
3 answers

how to unit test an email rule

I download an employee's email into a table, I then take that collection of emails I just downloaded and run a bunch of rules on them. e.g. if email from blah@email.com, route the email to folder1. How could I write a unit test for this…
mrblah
  • 99,669
  • 140
  • 310
  • 420
0
votes
0 answers

Getting DependsOn Attribute to work with StaticTestFactory

When generating Tests with a StaticTestFactory in mbunit, the test suite needs to run only if a previous test passes. In the below code sample, The test Factory_ShouldNotRun_Test is executed even when the test it depends on fails. The DependsOn…
Faiz
  • 3,216
  • 1
  • 19
  • 25