public void SqrtYTest(double first, double second, double expected) { ICalculator calculator = new SqrtY(); double result = calculator.Calculate(first, second); Assert.AreEqual(expected, result); }
public void NegativeYTest() { ICalculator calculator = new SqrtY(); Assert.Throws<ArgumentException>(() => calculator.Calculate(-4, 2)); }