Use the latest test adapter for NUnit2
This commit is contained in:
yowkotsai 2017-08-06 20:07:35 +08:00
Родитель a1e12f1727
Коммит d5c2c69c07
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -38,7 +38,6 @@ namespace TestGeneration.Extensions.NUnit
public class NUnit2SolutionManager : SolutionManagerBase
{
private const string NUnitVersion = "2.6.4";
private const string NUnitTestAdapterVersion = "2.1.1";
/// <summary>
/// Initializes a new instance of the <see cref="NUnit2SolutionManager"/> class.
/// </summary>
@ -66,7 +65,7 @@ namespace TestGeneration.Extensions.NUnit
base.OnUnitTestProjectCreated(unitTestProject, sourceMethod);
EnsureNuGetReference(unitTestProject, "NUnit", NUnitVersion);
EnsureNuGetReference(unitTestProject, "NUnitTestAdapter", NUnitTestAdapterVersion);
EnsureNuGetReference(unitTestProject, "NUnitTestAdapter", null);
var vsp = unitTestProject.Object as VSProject2;
var reference = vsp?.References.Find(GlobalConstants.MSTestAssemblyName);