예제 #1
0
 public void NegativeFirstNumberTest()
 {
     IOneArgCalculator calculator = new Lg();
     Assert.Throws<Exception>(() => calculator.Calculate(-1));
 }
예제 #2
0
 public void LgTest(double firstvalue, double expected)
 {
     IOneArgCalculator calculator = new Lg();
     double result = calculator.Calculate(firstvalue);
     Assert.AreEqual(expected, result);
 }