Skip to content

Commit

Permalink
Merge pull request #17 from ChrisMaddock/issue-14
Browse files Browse the repository at this point in the history
Upgrade NUnit version
  • Loading branch information
OsirisTerje authored Jul 14, 2016
2 parents 4c63f35 + 97a524c commit 03fe165
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions CreateUnitTests.NUnit/NUnit3SolutionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ namespace TestGeneration.Extensions.NUnit
{
public class NUnit3SolutionManager : SolutionManagerBase
{
private const string NUnit3Version = "3.2.0";
/// <summary>
/// Initializes a new instance of the <see cref="NUnit3SolutionManager"/> class.
/// </summary>
Expand All @@ -60,7 +59,7 @@ protected override void OnUnitTestProjectCreated(Project unitTestProject, CodeFu
TraceLogger.LogInfo("NUnitSolutionManager.OnUnitTestProjectCreated: Adding reference to NUnit assemblies through nuget.");

base.OnUnitTestProjectCreated(unitTestProject, sourceMethod);
this.EnsureNuGetReference(unitTestProject, "NUnit", NUnit3Version);
this.EnsureNuGetReference(unitTestProject, "NUnit", null);

var vsp = unitTestProject.Object as VSProject2;
var reference = vsp?.References.Find(GlobalConstants.MSTestAssemblyName);
Expand Down
4 changes: 1 addition & 3 deletions IntelliTest.NUnit/NUnit3TestFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ namespace TestGeneration.Extensions.IntelliTest.NUnit
[Serializable]
sealed class NUnit3TestFramework : AttributeBasedTestFrameworkBase
{
private const string NUnitVersion = "3.2.0";

/// <summary>
/// Initializes a new instance of the <see cref="NUnit3TestFramework"/> class.
/// </summary>
Expand Down Expand Up @@ -83,7 +81,7 @@ public NUnit3TestFramework(IPexComponent host)
/// The test framework references.
/// </summary>
public override ICountable<ShortReferenceAssemblyName> References =>
Indexable.One(new ShortReferenceAssemblyName(ShortAssemblyName.FromName("NUnit"), NUnitVersion,
Indexable.One(new ShortReferenceAssemblyName(ShortAssemblyName.FromName("NUnit"), null,
AssemblyReferenceType.NugetReference));

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
Creates Unit tests and Intellitests with both NUnit 2.6.4 and NUnit 3 frameworks.
</Description>
<MoreInfo>https://github.com/nunit/nunit-vs-testgenerator</MoreInfo>
<GettingStartedGuide>https://github.com/nunit/docs/wiki/Visual-Studio-Test-Generator</GettingStartedGuide>
<License>license.txt</License>
<GettingStartedGuide>https://github.com/nunit/docs/wiki/Visual-Studio-Test-Generator</GettingStartedGuide>
<Icon>nunit3_32x32.png</Icon>
<PreviewImage>preview.jpg</PreviewImage>
<Tags>unit testing, NUnit</Tags>
Expand Down

0 comments on commit 03fe165

Please sign in to comment.