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); Console.WriteLine("X: " + Laba2.task2(X, Y, Z)[0] + " Y: " + Laba2.task2(X, Y, Z)[1] + " Z: " + Laba2.task2(X, Y, Z)[2]); }
public void test1() { List <double> result = obj2.task2(6.35, 2.7, 5.08); List <double> otvet = new List <double> { 40.3225, 7.29, 25.8064 }; CollectionAssert.AreEqual(otvet, result, new MyComparer()); }