Skip to content

Commit c4b64c9

Browse files
authored
Merge pull request #22 from SpartaDeveloper93/main
Fixed the support for test projects. Fixed tests also
2 parents 31ec322 + fe2d55b commit c4b64c9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/GeoJSON.Text.Test.Unit/Feature/FeatureCollectionTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public void Can_DeserializeGeneric()
4646
Assert.IsNotNull(featureCollection);
4747
Assert.IsNotNull(featureCollection.Features);
4848
Assert.AreEqual(featureCollection.Features.Count, 3);
49-
Assert.AreEqual("DD", featureCollection.Features.First().Properties.Name);
50-
Assert.AreEqual(123, featureCollection.Features.First().Properties.Size);
49+
Assert.AreEqual("DD", featureCollection.Features.First().Properties.name);
50+
Assert.AreEqual(123, featureCollection.Features.First().Properties.size);
5151
}
5252

5353
[Test]
@@ -188,7 +188,7 @@ private void Assert_Are_Equal(FeatureCollection left, FeatureCollection right)
188188

189189
private class FeatureCollectionTestPropertyObject
190190
{
191-
public string Name { get; set; }
192-
public int Size { get; set; }
191+
public string name { get; set; }
192+
public int size { get; set; }
193193
}
194194
}

src/GeoJSON.Text.Test.Unit/GeoJSON.Text.Test.Unit.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ProjectGuid>{6C93B314-9208-4684-B873-172F7EC81689}</ProjectGuid>
55
<RootNamespace>GeoJSON.Text.Tests</RootNamespace>
66
<AssemblyName>GeoJSON.Text.Tests</AssemblyName>
7-
<TargetFrameworks>net462,net6.0;net7.0;netcoreapp3.1</TargetFrameworks>
7+
<TargetFrameworks>net6.0;net7.0;netstandard2.0</TargetFrameworks>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
99
<LangVersion>10</LangVersion>
1010
</PropertyGroup>

src/GeoJSON.Text/Feature/FeatureCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public FeatureCollection(List<Feature<IGeometryObject, TProps>> features)
164164
/// </summary>
165165
/// <value>The features.</value>
166166
[JsonPropertyName("features")]
167-
new public List<Feature<IGeometryObject, TProps>> Features { get; private set; }
167+
public new List<Feature<IGeometryObject, TProps>> Features { get; set; }
168168

169169
#region IEqualityComparer, IEquatable
170170

0 commit comments

Comments
 (0)