public override bool Equals(object obj) { DeploymentChromosome chromosome = obj as DeploymentChromosome; return(chromosome != null && FeatureModel.Equals(chromosome.FeatureModel) && Genes.OrderBy(g => g.FeatureId).SequenceEqual(chromosome.Genes.OrderBy(g => g.FeatureId))); }
public bool Equals_Returns_Correctly(FeatureModel featureModel, object other) { return(featureModel.Equals(other)); }