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