public void EqualsIsImplemented() { AmplitudeRatio v = AmplitudeRatio.FromDecibelVolts(1); Assert.True(v.Equals(AmplitudeRatio.FromDecibelVolts(1), AmplitudeRatio.FromDecibelVolts(DecibelVoltsTolerance))); Assert.False(v.Equals(AmplitudeRatio.Zero, AmplitudeRatio.FromDecibelVolts(DecibelVoltsTolerance))); }
public void EqualsReturnsFalseOnNull() { AmplitudeRatio decibelvolt = AmplitudeRatio.FromDecibelVolts(1); Assert.IsFalse(decibelvolt.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { AmplitudeRatio decibelvolt = AmplitudeRatio.FromDecibelVolts(1); Assert.IsFalse(decibelvolt.Equals(new object())); }