public void EqualsIsImplemented() { Capacitance v = Capacitance.FromFarads(1); Assert.True(v.Equals(Capacitance.FromFarads(1), Capacitance.FromFarads(FaradsTolerance))); Assert.False(v.Equals(Capacitance.Zero, Capacitance.FromFarads(FaradsTolerance))); }
public void EqualsReturnsFalseOnNull() { Capacitance farad = Capacitance.FromFarads(1); Assert.False(farad.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { Capacitance farad = Capacitance.FromFarads(1); Assert.False(farad.Equals(new object())); }