public void EqualsIsImplemented() { HeatFlux v = HeatFlux.FromWattsPerSquareMeter(1); Assert.True(v.Equals(HeatFlux.FromWattsPerSquareMeter(1), HeatFlux.FromWattsPerSquareMeter(WattsPerSquareMeterTolerance))); Assert.False(v.Equals(HeatFlux.Zero, HeatFlux.FromWattsPerSquareMeter(WattsPerSquareMeterTolerance))); }
public void EqualsReturnsFalseOnNull() { HeatFlux wattpersquaremeter = HeatFlux.FromWattsPerSquareMeter(1); Assert.False(wattpersquaremeter.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { HeatFlux wattpersquaremeter = HeatFlux.FromWattsPerSquareMeter(1); Assert.False(wattpersquaremeter.Equals(new object())); }