static void Step3943() { Console.WriteLine(); Console.WriteLine("3943"); int[] in3943x = { -5, 7507, 7489, -7481 }; int[] in3943y = { 81, 7499, -7487, 7477 }; double[] outs3943 = { -10, -435.7062, 0, 0 }; for (int i = 0; i < in3943x.Length; i++) { try { double result = Lab02.Task3943(in3943x[i], in3943y[i]); Console.WriteLine("{0:F6} ({1:F6})", result, outs3943[i]); } catch (Exception e) { Console.WriteLine(e.Message); } } }
public void Task3943Assertion1() { Lab02.Task3943(7489, -7487); }
public void Task3943Assertion2() { Lab02.Task3943(-7481, 7477); }
public void Task3943Test() { Assert.AreEqual(-10, Lab02.Task3943(-5, 81), 0.0001); Assert.AreEqual(-435.7062, Lab02.Task3943(7507, 7499), 0.0001); }