public void test1() { List <double> result = obj2.task7(6.35, 2.7, 5.08); List <double> otvet = new List <double> { 2.7 }; CollectionAssert.AreEqual(otvet, result, new MyComparer()); }
public void Execute(Lab2Calc Laba2) { double X; double Y; double Z; Console.WriteLine("Введите X"); double.TryParse(Console.ReadLine(), out X); Console.WriteLine("Введите Y"); double.TryParse(Console.ReadLine(), out Y); Console.WriteLine("Введите Z"); double.TryParse(Console.ReadLine(), out Z); List <double> result = Laba2.task7(X, Y, Z); string res = ""; foreach (double n in result) { res += n.ToString() + "; "; } Console.WriteLine(res); }