public void test1() { List <double> result = obj2.task6(3, 2, 1); List <double> otvet = new List <double> { 6, 4, 2 }; CollectionAssert.AreEqual(otvet, result, new MyComparer()); }
public void Execute(Lab2Calc Laba2) { double a; double b; double c; Console.WriteLine("Введите a"); double.TryParse(Console.ReadLine(), out a); Console.WriteLine("Введите b"); double.TryParse(Console.ReadLine(), out b); Console.WriteLine("Введите c"); double.TryParse(Console.ReadLine(), out c); List <double> result = Laba2.task6(a, b, c); Console.WriteLine("a: " + result[0] + " b: " + result[1] + " c: " + result[2]); }