OnUranus() public method

public OnUranus ( ) : double
return double
    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_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));
    }
示例#3
0
 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));
 }
示例#4
0
    public void Age_on_uranus()
    {
        var sut = new SpaceAge(1210123456);

        Assert.Equal(0.46, sut.OnUranus(), precision: 2);
    }
    public void Age_on_uranus()
    {
        var sut = new SpaceAge(3210123456);

        Assert.Equal(1.21, sut.OnUranus());
    }