Beispiel #1
0
 public void LogarExceptionTest()
 {
     ISingle logarCalculator = new Logar();
     Assert.Throws<ArgumentException>(() => logarCalculator.CreateCalculate(-1));
 }
Beispiel #2
0
 public void LogarTest(double first, double expected)
 {
     ISingle logarCalculator = new Logar();
     double result = logarCalculator.CreateCalculate(first);
     Assert.AreEqual(expected, result);
 }