Esempio n. 1
0
        public void OnedivxCalcTest(double first, double expected)
        {
            var    calc   = new OnedivxCalc();
            double result = calc.Calculate(first);

            Assert.AreEqual(expected, result, 0.001);
        }
Esempio n. 2
0
        public void Onedivzero()
        {
            var calc = new OnedivxCalc();

            Assert.Throws <Exception>(() => calc.Calculate(0));
        }