Пример #1
0
        public void BaseFunctionTest()
        {
            Summation sum      = new Summation();
            double    expected = 5;
            double    actual   = sum.Execute(2, 3);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void NullArgsTest()
        {
            Summation sum = new Summation();

            Assert.Catch <NotEnoughArgsException>(() => sum.Execute());
        }