gallio

MbUnit: The most elegant way to compare doubles?

≯℡__Kan透↙ 提交于 2019-12-10 07:06:02
问题 The code Assert.AreEqual (9.97320998018748d, observerPosition.CenterLongitude); produces Expected Value & Actual Value : 9.97320998018748 Remark : Both values look the same when formatted but they are distinct instances. What is the most elegant way to compare two doubles for equality in MbUnit 3.0? I know I could round them up myself, but is there some MbUnit construct for this? UPDATE: I consider my current "workaround" to be non-elegant: Assert.LessThan( Math.Abs(9.97320998018748d -

Team City - Add Gallio test result xml to build display

岁酱吖の 提交于 2019-12-08 01:32:09
问题 Im using TeamCity with Gallio/XUnit/Specflow and trying to display our unit/acceptance test results. I believe the output is NUnit xml test result format. Our unit tests auotmatically display using the command runner with Gallio. The acceptance tests are run through a large Powershell script which calls Gallio (Run-Gallio). Results are output to acceptance-test-results.xml. Is there a way to display the acceptance-test-results.xml in TeamCity (6.5.5) ? 回答1: To do this in a PowerShell script

Why do we see a ModuleLoadExceptionHandlerException when unit testing

感情迁移 提交于 2019-12-06 05:16:32
问题 We have a mixed mode assembly that contains both VC++ (using MFC) and C++/CLI classes. It is an MFC Extension dll and is loaded into our MFC executable at runtime and all works well. When we come to unit test the unmanaged classes in there from another C++/CLI assembly, we see the following exception everytime we try to create an instance (via new) of an unmanaged class: Exception System.TypeInitializationException: The type initializer for '<Module>' threw an exception. --->

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

偶尔善良 提交于 2019-12-05 20:54:25
问题 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? 回答1: TestDriven.Net works really well. Gallio also supports the ReSharper unit test runner and Visual Studio test tools. We will be shipping a new release of Gallio this week with support for R# 5.0 and VS 2010. 回答2: Install Gallio 3.1 on the dev machine. Then in VS2008, you'll have the option to

Why do we see a ModuleLoadExceptionHandlerException when unit testing

ぐ巨炮叔叔 提交于 2019-12-04 09:29:06
We have a mixed mode assembly that contains both VC++ (using MFC) and C++/CLI classes. It is an MFC Extension dll and is loaded into our MFC executable at runtime and all works well. When we come to unit test the unmanaged classes in there from another C++/CLI assembly, we see the following exception everytime we try to create an instance (via new) of an unmanaged class: Exception System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadExceptionHandlerException: A nested exception occurred after the primary exception

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

两盒软妹~` 提交于 2019-12-04 03:25:14
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? TestDriven.Net works really well. Gallio also supports the ReSharper unit test runner and Visual Studio test tools. We will be shipping a new release of Gallio this week with support for R# 5.0 and VS 2010. Lee Oades Install Gallio 3.1 on the dev machine. Then in VS2008, you'll have the option to create a "MbUnit v3 Test Project". This doesn't just include all of the Gallio dlls for you, it has a

Using Gallio to run vstest from VS2012

送分小仙女□ 提交于 2019-12-02 16:59:10
问题 I am surprised that I have not been able to find this information online. We use Sonar to run Gallio to collect test coverage information. When Gallio runs it reports the following error. Cannot run tests because the MSTest executable was not found Now we use Visual Studio 2012. The test runner is no longer mstest, but is instead vstest.console.exe. Can Gallio use the Visual Studio 2012 test runner, and if so, then how do I set that up? 回答1: Gallio only uses MSTest.exe to run tests so you

Gallio: Cannot run tests because the MSTest executable was not found

南楼画角 提交于 2019-11-27 04:48:39
问题 I installed the newest Gallio release 3.2.603 on a box without Visual Studio that will be our CI server. The NAnt script successfully built the .Net 4.0 projects but when it tries to run MSTest tests the following error occurs. [gallio] Gallio NAnt Task - Version 3.2 build 601 [gallio] [error] Assembly XXXXXXXXXXXXXX [gallio] Cannot run tests because the MSTest executable was not found Am I wrong to expect that Gallio is able to run MSTest tests without the MSTest executable or any other