public void LogxyCalculator() { LogxyCalculator calculator = new LogxyCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(1, 0)); }
public void CalculateTest(double firstValue, double secondValue, double expected) { var calculator = new LogxyCalculator(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void LogxyCalculator() { LogxyCalculator calculator = new LogxyCalculator(); double actual = calculator.Calculate(4, 2); Assert.AreEqual(2, actual); }
public void LogxyCalculator( double firstValue, double secondValue, double expected) { LogxyCalculator calculator = new LogxyCalculator(); double actual = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actual); }
public void ExceptionByBaseValueTest() { var calculator = new LogxyCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(1, 5)); }
public void ExceptionByNegativValueTest() { var calculator = new LogxyCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(2, -1)); }