Skip to content

Commit

Permalink
Fixed tests. Private "set" was causing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartaDeveloper93 committed Oct 2, 2023
1 parent 044a6ed commit fe2d55b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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/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 fe2d55b

Please sign in to comment.