OnSaturn() public method

public OnSaturn ( ) : double
return double
示例#1
0
    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));
    }
示例#2
0
    public void Age_on_saturn()
    {
        var age = new SpaceAge(3000000000);

        Assert.Equal(95.06, age.OnEarth());
        Assert.Equal(3.23, age.OnSaturn());
    }
示例#3
0
 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));
 }
示例#4
0
    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());
    }