public void TestEntityAlias_HashCode( ) { var alias1 = new EntityAlias("abc123"); var alias2 = new EntityAlias("abc123"); Assert.AreEqual(alias1.GetHashCode( ), alias2.GetHashCode( )); alias1 = new EntityAlias("xyz789:abc123"); alias2 = new EntityAlias("xyz789:abc123"); Assert.AreEqual(alias1.GetHashCode( ), alias2.GetHashCode( )); alias1 = new EntityAlias("xyz789", "abc123"); Assert.AreEqual(alias1.GetHashCode( ), alias2.GetHashCode( )); }
public override int GetHashCode() { return(Id.GetHashCode() ^ AssemblyId.GetHashCode() ^ PluginId.GetHashCode() ^ StepId.GetHashCode() ^ Attributes.GetHashCode() ^ Name.GetHashCode() ^ RelatedAttribute.GetHashCode() ^ EntityAlias.GetHashCode() ^ ImageType.GetHashCode() ^ MessagePropertyName.GetHashCode()); }