public void EqualsIsImplemented() { MassFlux v = MassFlux.FromKilogramsPerSecondPerSquareMeter(1); Assert.True(v.Equals(MassFlux.FromKilogramsPerSecondPerSquareMeter(1), MassFlux.FromKilogramsPerSecondPerSquareMeter(KilogramsPerSecondPerSquareMeterTolerance))); Assert.False(v.Equals(MassFlux.Zero, MassFlux.FromKilogramsPerSecondPerSquareMeter(KilogramsPerSecondPerSquareMeterTolerance))); }
public void EqualsReturnsFalseOnNull() { MassFlux kilogrampersecondpersquaremeter = MassFlux.FromKilogramsPerSecondPerSquareMeter(1); Assert.False(kilogrampersecondpersquaremeter.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { MassFlux kilogrampersecondpersquaremeter = MassFlux.FromKilogramsPerSecondPerSquareMeter(1); Assert.False(kilogrampersecondpersquaremeter.Equals(new object())); }