Example #1
0
        public void CalculateTest(double firstValue, double expected)
        {
            var calculator   = new Arcsine();
            var actualResult = calculator.Calculate(firstValue);

            Assert.AreEqual(expected, actualResult, 0.001);
        }
Example #2
0
        public void ArcSineInvalidValueTest()
        {
            var calculator = new Arcsine();

            Assert.Throws <Exception>(() => calculator.Calculate(234));
        }
Example #3
0
        public void ExceptionLessThanZeroTest(double firstArgument)
        {
            var calculator = new Arcsine();

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