public void Age_on_saturn() { var age = new SpaceAge(3000000000); Assert.That(age.OnEarth(), Is.EqualTo(95.06).Within(1E-02)); Assert.That(age.OnSaturn(), Is.EqualTo(3.23).Within(1E-02)); }
public void Age_on_saturn() { var age = new SpaceAge(3000000000); Assert.Equal(95.06, age.OnEarth()); Assert.Equal(3.23, age.OnSaturn()); }
public void Age_on_saturn() { var sut = new SpaceAge(2000000000); Assert.Equal(2.15, sut.OnSaturn(), precision: 2); }
public void Age_on_saturn() { var sut = new SpaceAge(3000000000); Assert.Equal(3.23, sut.OnSaturn()); }