コード例 #1
0
        public void ThrowExceptionIfInputHasNegativeNumbers()
        {
            var input = "-1, 2, 3";

            Assert.Throws <System.ArgumentException>(() => Calculator.Add(input), "Negatives not allowed");
        }