public void TestAdd() { IComplexMath cm = new ComplexMath(); float ans = 3 + 4; Assert.AreEqual(cm.Add(3, 4), ans); }
private void button1_Click(object sender, EventArgs e) { CollectComplexNumbers(); complexMath.Add(a, b, c, d, out var res1, out var res2); PrintResults(res1, res2); }