public void ObjectiveFunction_Substitution_Successful( ObjectiveFunction objectiveFunction, Decomposition decomposition, ObjectiveFunction expected) { objectiveFunction.Substitution(decomposition); CollectionAssert.AreEqual(expected.ToArray(), objectiveFunction.ToArray()); }