public void ValueFormatCopyToEquals() { var target = new ValueFormat(); m_ValueFormatGerman.CopyTo(target); Assert.IsTrue(m_ValueFormatGerman.Equals(target)); }
public void EqualsAndHashCodeFailure() { var format = new ValueFormat(typeof(int), "000000", new Regex(@"WKN: ([\d]+)")); var other = new ValueFormat(typeof(int), "000000"); Assert.IsFalse(format.Equals(other)); Assert.IsFalse(format.Equals((object)other)); Assert.AreNotEqual(format.GetHashCode(), other.GetHashCode()); }
public void EqualsAndHashCode() { var format = new ValueFormat(typeof(int), "000000", new Regex(@"WKN: ([\d]+)")); var same = new ValueFormat(typeof(int), "000000", new Regex(@"WKN: ([\d]+)")); Assert.IsTrue(format.Equals(same)); Assert.IsTrue(format.Equals((object)same)); Assert.AreEqual(format.GetHashCode(), same.GetHashCode()); }
/// <inheritdoc /> public bool Equals([AllowNull] Number other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ValueFormat == other.ValueFormat || ValueFormat != null && ValueFormat.Equals(other.ValueFormat) ) && ( Font == other.Font || Font != null && Font.Equals(other.Font) ) && ( Prefix == other.Prefix || Prefix != null && Prefix.Equals(other.Prefix) ) && ( Suffix == other.Suffix || Suffix != null && Suffix.Equals(other.Suffix) )); }
public void ValueFormatEquals() { var target = new ValueFormat(); var target2 = new ValueFormat(); Assert.IsTrue(target2.Equals(target)); }
/// <inheritdoc /> public bool Equals([AllowNull] Delta other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Reference == other.Reference || Reference != null && Reference.Equals(other.Reference) ) && ( Position == other.Position || Position != null && Position.Equals(other.Position) ) && ( Relative == other.Relative || Relative != null && Relative.Equals(other.Relative) ) && ( ValueFormat == other.ValueFormat || ValueFormat != null && ValueFormat.Equals(other.ValueFormat) ) && ( Increasing == other.Increasing || Increasing != null && Increasing.Equals(other.Increasing) ) && ( Decreasing == other.Decreasing || Decreasing != null && Decreasing.Equals(other.Decreasing) ) && ( Font == other.Font || Font != null && Font.Equals(other.Font) )); }
/// <inheritdoc /> public bool Equals([AllowNull] Sankey other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Visible == other.Visible || Visible != null && Visible.Equals(other.Visible) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( UId == other.UId || UId != null && UId.Equals(other.UId) ) && ( Equals(Ids, other.Ids) || Ids != null && other.Ids != null && Ids.SequenceEqual(other.Ids) ) && ( Equals(CustomData, other.CustomData) || CustomData != null && other.CustomData != null && CustomData.SequenceEqual(other.CustomData) ) && ( Meta == other.Meta || Meta != null && Meta.Equals(other.Meta) ) && ( Equals(MetaArray, other.MetaArray) || MetaArray != null && other.MetaArray != null && MetaArray.SequenceEqual(other.MetaArray) ) && ( SelectedPoints == other.SelectedPoints || SelectedPoints != null && SelectedPoints.Equals(other.SelectedPoints) ) && ( Stream == other.Stream || Stream != null && Stream.Equals(other.Stream) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) ) && ( HoverInfo == other.HoverInfo || HoverInfo != null && HoverInfo.Equals(other.HoverInfo) ) && ( HoverLabel == other.HoverLabel || HoverLabel != null && HoverLabel.Equals(other.HoverLabel) ) && ( Domain == other.Domain || Domain != null && Domain.Equals(other.Domain) ) && ( Orientation == other.Orientation || Orientation != null && Orientation.Equals(other.Orientation) ) && ( ValueFormat == other.ValueFormat || ValueFormat != null && ValueFormat.Equals(other.ValueFormat) ) && ( ValueSuffix == other.ValueSuffix || ValueSuffix != null && ValueSuffix.Equals(other.ValueSuffix) ) && ( Arrangement == other.Arrangement || Arrangement != null && Arrangement.Equals(other.Arrangement) ) && ( TextFont == other.TextFont || TextFont != null && TextFont.Equals(other.TextFont) ) && ( Node == other.Node || Node != null && Node.Equals(other.Node) ) && ( Link == other.Link || Link != null && Link.Equals(other.Link) ) && ( IdsSrc == other.IdsSrc || IdsSrc != null && IdsSrc.Equals(other.IdsSrc) ) && ( CustomDataSrc == other.CustomDataSrc || CustomDataSrc != null && CustomDataSrc.Equals(other.CustomDataSrc) ) && ( MetaSrc == other.MetaSrc || MetaSrc != null && MetaSrc.Equals(other.MetaSrc) )); }
public void EqualsAndHashCodeFailure() { var format = new ValueFormat( typeof( int ), "000000", new Regex( @"WKN: ([\d]+)" ) ); var other = new ValueFormat( typeof( int ), "000000" ); Assert.IsFalse( format.Equals( other ) ); Assert.IsFalse( format.Equals( (object)other ) ); Assert.AreNotEqual( format.GetHashCode(), other.GetHashCode() ); }
public void EqualsAndHashCode() { var format = new ValueFormat( typeof( int ), "000000", new Regex( @"WKN: ([\d]+)" ) ); var same = new ValueFormat( typeof( int ), "000000", new Regex( @"WKN: ([\d]+)" ) ); Assert.IsTrue( format.Equals( same ) ); Assert.IsTrue( format.Equals( (object)same ) ); Assert.AreEqual( format.GetHashCode(), same.GetHashCode() ); }