コード例 #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));
 }