public void CalculateFitnessTest() { int[] features = new int[] { 1, 2, 0, 4 }; Expert e = new Expert("1,2,0,4"); double[] arrayOfFeatureDifficulty = new double[] { 1, 1, 2, 2 }; double fitness = 0; for (int i = 0; i < features.Count(); i++) { fitness += features[i] * arrayOfFeatureDifficulty[i]; } e.CalculateFitness(arrayOfFeatureDifficulty); Assert.AreEqual(fitness, e.Fitness); }