Exemplo n.º 1
0
 /// <inheritdoc />
 protected bool Equals(Orbit other)
 {
     return(MeanAnomoly.Equals(other.MeanAnomoly) && AscendingNode.Equals(other.AscendingNode) &&
            ArgumentPerigee.Equals(other.ArgumentPerigee) && MeanMotion.Equals(other.MeanMotion) &&
            RecoveredSemiMajorAxis.Equals(other.RecoveredSemiMajorAxis) &&
            RecoveredMeanMotion.Equals(other.RecoveredMeanMotion) && Perigee.Equals(other.Perigee) &&
            Apogee.Equals(other.Apogee) && Period.Equals(other.Period) && Epoch.Equals(other.Epoch) &&
            BStar.Equals(other.BStar) && Eccentricity.Equals(other.Eccentricity) &&
            Inclination.Equals(other.Inclination));
 }
Exemplo n.º 2
0
        public void EpochTest_InvalidTypeReturnsFalse()
        {
            Epoch e1 = new Epoch(5, 3);

            Assert.IsFalse(e1.Equals(new object()));
        }
Exemplo n.º 3
0
        public void EpochTest_NullReturnsFalse()
        {
            Epoch e1 = new Epoch(5, 3);

            Assert.IsFalse(e1.Equals(null));
        }