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