public void EqualsIsImplemented() { ElectricInductance v = ElectricInductance.FromHenries(1); Assert.True(v.Equals(ElectricInductance.FromHenries(1), ElectricInductance.FromHenries(HenriesTolerance))); Assert.False(v.Equals(ElectricInductance.Zero, ElectricInductance.FromHenries(HenriesTolerance))); }
public void EqualsReturnsFalseOnNull() { ElectricInductance henry = ElectricInductance.FromHenries(1); Assert.False(henry.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { ElectricInductance henry = ElectricInductance.FromHenries(1); Assert.False(henry.Equals(new object())); }