public void Age_on_earth_change_seconds() { var sut = new SpaceAge(1000000000); Assert.Equal(31.69, sut.OnEarth(), precision: 2); sut.Seconds = 2000000000; Assert.Equal(63.38, sut.OnEarth(), precision: 2); }
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_venus() { var age = new SpaceAge(189839836); Assert.Equal(6.02, age.OnEarth()); Assert.Equal(9.78, age.OnVenus()); }
public void Age_on_neptune() { var age = new SpaceAge(8210123456); Assert.That(age.OnEarth(), Is.EqualTo(260.16).Within(1E-02)); Assert.That(age.OnNeptune(), Is.EqualTo(1.58).Within(1E-02)); }
public void Age_on_mercury() { var age = new SpaceAge(2134835688); Assert.Equal(67.65, age.OnEarth()); Assert.Equal(280.88, age.OnMercury()); }
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_uranus() { var age = new SpaceAge(3210123456); Assert.That(age.OnEarth(), Is.EqualTo(101.72).Within(1E-02)); Assert.That(age.OnUranus(), Is.EqualTo(1.21).Within(1E-02)); }
public void Age_on_jupiter() { var age = new SpaceAge(901876382); Assert.That(age.OnEarth(), Is.EqualTo(28.58).Within(1E-02)); Assert.That(age.OnJupiter(), Is.EqualTo(2.41).Within(1E-02)); }
public void Age_on_mars() { var age = new SpaceAge(2329871239); Assert.That(age.OnEarth(), Is.EqualTo(73.83).Within(1E-02)); Assert.That(age.OnMars(), Is.EqualTo(39.25).Within(1E-02)); }
public void Age_on_venus() { var age = new SpaceAge(189839836); Assert.That(age.OnEarth(), Is.EqualTo(6.02).Within(1E-02)); Assert.That(age.OnVenus(), Is.EqualTo(9.78).Within(1E-02)); }
public void Age_on_mars() { var age = new SpaceAge(2329871239); Assert.Equal(73.83, age.OnEarth()); Assert.Equal(39.25, age.OnMars()); }
public void Age_on_jupiter() { var age = new SpaceAge(901876382); Assert.Equal(28.58, age.OnEarth()); Assert.Equal(2.41, age.OnJupiter()); }
public void Age_on_earth() { var sut = new SpaceAge(1000000000); // System.Console.WriteLine(sut.theSeconds); Assert.Equal(31.69, sut.OnEarth(), precision: 2); }
public void Age_on_neptune() { var age = new SpaceAge(8210123456); Assert.Equal(260.16, age.OnEarth()); Assert.Equal(1.58, age.OnNeptune()); }
public void Age_on_uranus() { var age = new SpaceAge(3210123456); Assert.Equal(101.72, age.OnEarth()); Assert.Equal(1.21, age.OnUranus()); }
public void Age_on_mercury() { var age = new SpaceAge(2134835688); Assert.That(age.OnEarth(), Is.EqualTo(67.65).Within(1E-02)); Assert.That(age.OnMercury(), Is.EqualTo(280.88).Within(1E-02)); }
public static void Main() { Console.WriteLine("**Main Function Executing**"); var age = new SpaceAge(10000000000); Console.WriteLine("Earth years:" + age.OnEarth()); Console.WriteLine("Mercury years:" + age.OnMercury()); }
public void Age_on_earth() { var age = new SpaceAge(1000000000); Assert.That(age.OnEarth(), Is.EqualTo(31.69).Within(1E-02)); }
public void Age_on_earth() { var sut = new SpaceAge(1000000000); Assert.Equal(31.69, sut.OnEarth(), precision: 2); }
public void Age_on_earth() { var age = new SpaceAge(1000000000); Assert.Equal(31.69, age.OnEarth()); }