Exemple #1
0
        public void DivideOfTwoNumbers()
        {
            var subject = new PracticeCSharp.Math();
            var actual  = subject.Divide(10, 2);

            Assert.AreEqual(5, actual);
        }
Exemple #2
0
        public void SumOfTwoNumbers()
        {
            var subject = new PracticeCSharp.Math();
            var actual  = subject.Sum(5, 10);

            Assert.AreEqual(15, actual);
        }
Exemple #3
0
        public void SumTable()
        {
            var integersTable = new List <int> {
                1, 2, 3
            };
            var subject = new PracticeCSharp.Math();
            var actual  = subject.SumTable(integersTable);

            Assert.AreEqual(6, actual);
        }