public void Execute(Lab3Calc Laba3) { int A; Console.WriteLine("Введите A"); int.TryParse(Console.ReadLine(), out A); try { Console.WriteLine(Laba3.task5(A)); } catch (ArgumentException e) { Console.WriteLine(e.Message); } }
public void Test1() { int result = obj3.task5(-100); Assert.AreEqual(120200, result); }