Skip to content

Commit

Permalink
Update test project to enable Live Unit Testing in VS 2017
Browse files Browse the repository at this point in the history
The Live Unit Testing (LUT) feature was introduced in Visual Studio
2017 Enterprise Edition version 15.3.

NuGet packages added to the test project:

- NUnit3TestAdapter:
  Visual Studio needs it for LUT to find the tests

- Microsoft.NET.Test.Sdk:
  LUT asked if it was installed thus assuming it is required
  
It was also necessary to explicitly set the startup object of the test
project to MoreLinq.Test.Program because of additional possible start
points created by one or other of the NuGet packages above.
  • Loading branch information
c9952594 authored and atifaziz committed Nov 22, 2017
1 parent 7a1a38e commit 64cb263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MoreLinq.Test/MoreLinq.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<ApplicationIcon />
<OutputTypeEx>library</OutputTypeEx>
<StartupObject />
<StartupObject>MoreLinq.Test.Program</StartupObject>
<LangVersion>7</LangVersion>
<WarningsNotAsErrors>618</WarningsNotAsErrors>
</PropertyGroup>
Expand All @@ -35,6 +35,8 @@
<PackageReference Include="NUnit" Version="3.6.1" />
<PackageReference Include="NUnitLite" Version="3.6.1" />
<PackageReference Include="System.ValueTuple" Version="4.4.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 64cb263

Please sign in to comment.