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