Ejemplo n.º 1
0
        public void CalculateTests(double firstValue, double secondValue, double expected)
        {
            LogCalculator logCalculator = new LogCalculator();
            double        result        = logCalculator.Calculate(firstValue, secondValue);

            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 2
0
        public void CalculateTest(double argument, double result, double accuracy)
        {
            var calculator = new LogCalculator();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult, accuracy);
        }
Ejemplo n.º 3
0
        public void CalculateTest(double firstnum, double secondnum, double expected)
        {
            var calculator   = new LogCalculator();
            var actualResult = calculator.Calculate(firstnum, secondnum);

            Assert.AreEqual(expected, actualResult);
        }
Ejemplo n.º 4
0
        public void CalculateTest(double argument, double result, double accuracy)
        {
            var calculator = new LogCalculator();
            var testResult = calculator.Calculate(argument);

            Assert.AreEqual(result, testResult, accuracy);
        }
Ejemplo n.º 5
0
        public void CalculateTests()
        {
            LogCalculator logCalculator = new LogCalculator();

            Assert.Throws <Exception>(() => logCalculator.Calculate(4, 1));
        }
Ejemplo n.º 6
0
 public void LogNegativeTest()
 {
     var calculator = new LogCalculator();
     var testResult = calculator.Calculate(-0.1);
 }
Ejemplo n.º 7
0
 public void LogNegativeTest()
 {
     var calculator = new LogCalculator();
     var testResult = calculator.Calculate(-0.1);
 }