예제 #1
0
        public void SqrtYTest(double first, double second, double expected)
        {
            ICalculator calculator = new SqrtY();

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