Beispiel #1
0
        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)));
        }
Beispiel #2
0
 public bool Equals_Returns_Correctly(FeatureModel featureModel, object other)
 {
     return(featureModel.Equals(other));
 }