public void EqualsIsImplemented() { PerTemperature v = PerTemperature.FromPerKelvins(1); Assert.IsTrue(v.Equals(PerTemperature.FromPerKelvins(1))); Assert.IsFalse(v.Equals(PerTemperature.Zero)); }
public void EqualsReturnsFalseOnNull() { PerTemperature perkelvin = PerTemperature.FromPerKelvins(1); Assert.IsFalse(perkelvin.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { PerTemperature perkelvin = PerTemperature.FromPerKelvins(1); Assert.IsFalse(perkelvin.Equals(new object())); }