示例#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);
        }
示例#2
0
        public void ErrorTest()
        {
            var calculator = new OstXY();

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