Example #1
0
 public void StepenExceptionTest()
 {
     ICalculator stepenCalculator = new Stepen();
     Assert.Throws<Exception>(() => stepenCalculator.Calculate(-1.5, -1.5));
 }
Example #2
0
 public void StepenTest(double first, double two, double expected)
 {
     ICalculator stepenCalculator = new Stepen();
     double result = stepenCalculator.Calculate(first, two);
     Assert.AreEqual(expected, result);
 }