Esempio n. 1
0
 public void CorenExceptionTest()
 {
     ISingle corenCalculator = new Coren();
     Assert.Throws<ArgumentException>(() => corenCalculator.CreateCalculate(-1));
 }
Esempio n. 2
0
 public void CorenTest(double first, double expected)
 {
     ISingle corenCalculator = new Coren();
     double result = corenCalculator.CreateCalculate(first);
     Assert.AreEqual(expected, result);
 }