Esempio n. 1
0
 public void ArgumentOutOfRangeExceptionTests(int a)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Task8.BisectionMethod(a));
 }
Esempio n. 2
0
        public void BisectionMethodTest(int a, int expected)
        {
            int actual = Task8.BisectionMethod(a);

            Assert.AreEqual(expected, actual);
        }