Skip to content

Commit 5b9c5c1

Browse files
committed
Change ProjNet.Tests TargetFramework to netcoreapp2.0
* Update references accordingly
1 parent ea0ec5c commit 5b9c5c1

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

ProjNet.Tests/ProjNET.Tests.csproj

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<SolutionDir Condition=" '$(SolutionDir)' == '' ">$(ProjectDir)..\</SolutionDir>
5-
<TargetFramework>net471</TargetFramework>
5+
<TargetFramework>netcoreapp2.0</TargetFramework>
66
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
77
<!-- The NUnit 2 test adapter doesn't support portable PDBs. -->
88
<DebugType>full</DebugType>
@@ -17,8 +17,11 @@
1717
<Reference Include="System.Xml.Linq" />
1818

1919
<PackageReference Include="GeoAPI.CoordinateSystems" Version="$(GeoAPIPackageReferenceVersion)" />
20-
<PackageReference Include="NUnit" Version="2.6.4" />
21-
<PackageReference Include="Npgsql" Version="2.2.7" />
20+
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
22+
<PackageReference Include="NUnit" Version="3.10.1" />
23+
<PackageReference Include="Npgsql" Version="4.0.5" />
24+
<PackageReference Include="NUnit3TestAdapter" Version="3.10.0" />
2225

2326
<ProjectReference Include="$(SolutionDir)ProjNet\ProjNET.csproj" />
2427
</ItemGroup>

ProjNet.Tests/WKT/WKTCoordSysParserTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ public void ParseFittedCoordinateSystemWkt ()
312312
Assert.Fail ("Could not create fitted coordinate system from:\r\n" + wkt + "\r\n" + ex.Message);
313313
}
314314

315-
Assert.IsNotNull (fcs);
316-
Assert.IsNotNullOrEmpty (fcs.ToBase ());
317-
Assert.IsNotNull (fcs.BaseCoordinateSystem);
315+
Assert.That(fcs, Is.Not.Null);
316+
Assert.That(fcs.ToBase(), Is.Not.Null.Or.Empty);
317+
Assert.That(fcs.BaseCoordinateSystem, Is.Not.Null);
318318

319319
Assert.AreEqual ("Local coordinate system MNAU (based on Gauss-Krueger)", fcs.Name);
320320
//Assert.AreEqual ("CUSTOM", fcs.Authority);

0 commit comments

Comments
 (0)