Exemple #1
0
        public void TestAdd()
        {
            IComplexMath cm  = new ComplexMath();
            float        ans = 3 + 4;

            Assert.AreEqual(cm.Add(3, 4), ans);
        }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     CollectComplexNumbers();
     complexMath.Add(a, b, c, d, out var res1, out var res2);
     PrintResults(res1, res2);
 }