Skip to content

Commit

Permalink
Fix unit tests that fail if the current culture does not use period a…
Browse files Browse the repository at this point in the history
…s a decimal separator (#71)

Fixes issue #70
  • Loading branch information
petmat authored and mrstebo committed Oct 14, 2018
1 parent 6419c65 commit b37a860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FakerDotNet.Tests/Fakers/AddressFakerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,15 @@ public void Latitude_returns_a_latitude()
{
A.CallTo(() => _fakerContainer.Number.Between(0, 180)).Returns(31.82743772556281);

Assert.AreEqual("-58.1725622744", _addressFaker.Latitude());
Assert.AreEqual((-58.1725622744).ToString("#.##########"), _addressFaker.Latitude());
}

[Test]
public void Longitude_returns_a_longitude()
{
A.CallTo(() => _fakerContainer.Number.Between(0, 360)).Returns(23.344516179048668);

Assert.AreEqual("-156.655483821", _addressFaker.Longitude());
Assert.AreEqual((-156.655483821).ToString("#.##########"), _addressFaker.Longitude());
}

[Test]
Expand Down

0 comments on commit b37a860

Please sign in to comment.