public void Test2Method1() { double a = 0; double b = 4; double c = 3.14; Lab6num2 num2 = new Lab6num2(); Assert.ThrowsException <ArgumentException>(() => num2.Num2(a, b, c), "a равно нулю."); }
public void Test2Method4() { double a = 1; double b = -4; double c = 4; double[] expected = { 2 }; Lab6num2 num2 = new Lab6num2(); double[] stringResult = num2.Num2(a, b, c); Array.Equals(expected, stringResult); }
public void Test2Method2() { double a = 1; double b = 10; double c = -1200; double[] expected = { 30, -40 }; Lab6num2 num2 = new Lab6num2(); double[] stringResult = num2.Num2(a, b, c); Array.Equals(expected, stringResult); }