Esempio n. 1
0
        public void OstXYTest(double firstValue, double secondValue, double expected)
        {
            var calculator   = new OstXY();
            var actualResult = calculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, actualResult);
        }
Esempio n. 2
0
        public void ErrorTest()
        {
            var calculator = new OstXY();

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