public void test1() { List <double> result = obj2.task5(10, 20); List <double> otvet = new List <double> { 10, 20 }; CollectionAssert.AreEqual(otvet, result, new MyComparer()); }
public void Execute(Lab2Calc Laba2) { double X; double Y; Console.WriteLine("Введите X"); double.TryParse(Console.ReadLine(), out X); Console.WriteLine("Введите Y"); double.TryParse(Console.ReadLine(), out Y); List <double> result = Laba2.task5(X, Y); Console.WriteLine("X: " + result[0] + " Y: " + result[1]); }