public void EqualsIsImplemented() { PressureChangeRate v = PressureChangeRate.FromPascalsPerSecond(1); Assert.True(v.Equals(PressureChangeRate.FromPascalsPerSecond(1))); Assert.False(v.Equals(PressureChangeRate.Zero)); }
public void EqualsReturnsFalseOnNull() { PressureChangeRate pascalpersecond = PressureChangeRate.FromPascalsPerSecond(1); Assert.False(pascalpersecond.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { PressureChangeRate pascalpersecond = PressureChangeRate.FromPascalsPerSecond(1); Assert.False(pascalpersecond.Equals(new object())); }