public void EmptyCollection_ShouldReturnEmptyString() { // arrange var sut = new PolylineEncoder(PolylineEncoding.Polyline5); // act string actualResult = sut.Encode(new GeoCoordinate[0]); // assert actualResult.Should().BeEmpty(); }
public void ShouldReturnProperValue(EncodeTestData testData) { // arrange var sut = new PolylineEncoder(PolylineEncoding.Polyline5); // act string actualResult = sut.Encode(testData.Coordinates); // assert actualResult.Should().Be(testData.ExpectedResult); }
public void NullCollection_ShouldReturnNullString() { // arrange var sut = new PolylineEncoder(PolylineEncoding.Polyline5); // act string actualResult = sut.Encode(null); // assert actualResult.Should().BeNull(); }