Ejemplo n.º 1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator   = new Arcos();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.001);
        }
Ejemplo n.º 2
0
        public void ArcCoseByInvalidValueTest()
        {
            var calculator = new Arcos();

            Assert.Throws <Exception>(() => calculator.Calculate(20));
        }