public void EqualsIsImplemented() { Permeability v = Permeability.FromHenriesPerMeter(1); Assert.True(v.Equals(Permeability.FromHenriesPerMeter(1), Permeability.FromHenriesPerMeter(HenriesPerMeterTolerance))); Assert.False(v.Equals(Permeability.Zero, Permeability.FromHenriesPerMeter(HenriesPerMeterTolerance))); }
private bool Equals(PipingSoilLayer other) { return(string.Equals(materialName, other.materialName) && Top.Equals(other.Top) && IsAquifer == other.IsAquifer && BelowPhreaticLevel.Equals(other.BelowPhreaticLevel) && DiameterD70.Equals(other.DiameterD70) && Permeability.Equals(other.Permeability) && Color.ToArgb().Equals(other.Color.ToArgb())); }
public void EqualsReturnsFalseOnNull() { Permeability henrypermeter = Permeability.FromHenriesPerMeter(1); Assert.False(henrypermeter.Equals(null)); }
public void EqualsReturnsFalseOnTypeMismatch() { Permeability henrypermeter = Permeability.FromHenriesPerMeter(1); Assert.False(henrypermeter.Equals(new object())); }