public void EqualsIsImplemented() { VolumeFlow v = VolumeFlow.FromCubicMetersPerSecond(1); Assert.True(v.Equals(VolumeFlow.FromCubicMetersPerSecond(1), VolumeFlow.FromCubicMetersPerSecond(CubicMetersPerSecondTolerance))); Assert.False(v.Equals(VolumeFlow.Zero, VolumeFlow.FromCubicMetersPerSecond(CubicMetersPerSecondTolerance))); }
public void EqualsReturnsFalseOnNull() { VolumeFlow cubicmeterpersecond = VolumeFlow.FromCubicMetersPerSecond(1); Assert.False(cubicmeterpersecond.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { VolumeFlow cubicmeterpersecond = VolumeFlow.FromCubicMetersPerSecond(1); Assert.False(cubicmeterpersecond.Equals(new object())); }