Exemple #1
0
        public void Add()
        {
            IAdds      iadd       = new Adds();
            Arithmetic arithmetic = new Arithmetic(iadd);
            int        res        = arithmetic.Add(1, 2);

            Assert.Equal(3, res);
        }
Exemple #2
0
        public void AddMuItiple(int parmaA, int parmaB)
        {
            IAdds      iadd       = new Adds();
            Arithmetic arithmetic = new Arithmetic(iadd);
            int        res        = arithmetic.Add(parmaA, parmaB);

            Assert.Equal(parmaA + parmaB, res);
        }