コード例 #1
0
        public void Log10Test(double first, double expected)
        {
            ISingleCalculator calculator = new Log10();
            double result = calculator.Calculate(first);
            Assert.AreEqual(expected, result);

            
        }
コード例 #2
0
 public void NegativeLn10XTest()
 {
     ISingleCalculator calculator = new Log10();
     Assert.Throws<ArgumentException>(() => calculator.Calculate(-1));
 }