This is a mirror of official site: http://jasper-net.blogspot.com/

Convert NUnit To MSTest Unit Test

| Thursday, October 6, 2011
Today one of my customers decide to work with MSTest Unit Test instead of NUnit, he asked me what he need to do to make it happen?

There are couple of options to accomplish that":

    Add Build Extension to Support NUnit run from MSBuild.
    Create Custom Activity to run NUnit executable
    Convert the NUnit Syntax to MSBuild

Because the customer had nothing special in NUnit and the entire company works in .NET and Team Build we decide to convert the NUnit Tests to MBuild Unit Tests Format.

Here is the steps you need to do:
Reference

You need to change “Nunit.framework.dll” with “Microsoft.VisualStudio.QualityTools.UnitTestFramework”.

And change the using from “using NUnit.Framework;” with “using Microsoft.VisualStudio.TestTools.UnitTesting;”.

Read more: Shai Raiten
QR: convert-nunit-to-mstest-unit-test.aspx

Posted via email from Jasper-net

0 comments: