Beispiel #1
0
        public void CalculateTest(double firstAgrument, double secondArgument, double expectedResult)
        {
            var calculator   = new RadialSystemAngleCalculator();
            var actualResult = calculator.Calculate(firstAgrument, secondArgument);

            Assert.AreEqual(expectedResult, actualResult, 0.001);
        }
Beispiel #2
0
        public void ExceptionTest()
        {
            var calculator = new RadialSystemAngleCalculator();

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