Skip to content

Commit

Permalink
Merge pull request #22 from SpartaDeveloper93/main
Browse files Browse the repository at this point in the history
Fixed the support for test projects. Fixed tests also
  • Loading branch information
xfischer authored Apr 25, 2024
2 parents 31ec322 + fe2d55b commit c4b64c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/GeoJSON.Text.Test.Unit/Feature/FeatureCollectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public void Can_DeserializeGeneric()
Assert.IsNotNull(featureCollection);
Assert.IsNotNull(featureCollection.Features);
Assert.AreEqual(featureCollection.Features.Count, 3);
Assert.AreEqual("DD", featureCollection.Features.First().Properties.Name);
Assert.AreEqual(123, featureCollection.Features.First().Properties.Size);
Assert.AreEqual("DD", featureCollection.Features.First().Properties.name);
Assert.AreEqual(123, featureCollection.Features.First().Properties.size);
}

[Test]
Expand Down Expand Up @@ -188,7 +188,7 @@ private void Assert_Are_Equal(FeatureCollection left, FeatureCollection right)

private class FeatureCollectionTestPropertyObject
{
public string Name { get; set; }
public int Size { get; set; }
public string name { get; set; }
public int size { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ProjectGuid>{6C93B314-9208-4684-B873-172F7EC81689}</ProjectGuid>
<RootNamespace>GeoJSON.Text.Tests</RootNamespace>
<AssemblyName>GeoJSON.Text.Tests</AssemblyName>
<TargetFrameworks>net462,net6.0;net7.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;netstandard2.0</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<LangVersion>10</LangVersion>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/GeoJSON.Text/Feature/FeatureCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public FeatureCollection(List<Feature<IGeometryObject, TProps>> features)
/// </summary>
/// <value>The features.</value>
[JsonPropertyName("features")]
new public List<Feature<IGeometryObject, TProps>> Features { get; private set; }
public new List<Feature<IGeometryObject, TProps>> Features { get; set; }

#region IEqualityComparer, IEquatable

Expand Down

0 comments on commit c4b64c9

Please sign in to comment.