Esempio n. 1
0
 public void SumaTestSetUp()
 {
     _service = new List <SumaService>()
     {
         new SumaService()
     };
     _controller = new SumaController(_service);
 }
Esempio n. 2
0
        public void TestAdd1()
        {
            //arange
            SumaController sumaController = new SumaController();
            int            a        = 5;
            int            b        = 8;
            int            esperado = 13;
            //act
            int resultado = sumaController.Add(a, b);

            //assert
            Assert.AreEqual(esperado, resultado);
        }
Esempio n. 3
0
        public void TestADD1()
        {
            //arrange
            SumaController sumaController = new SumaController();
            int            a        = 5;
            int            b        = 8;
            int            expected = 13;

            //act
            int result = sumaController.ADD(a, b);

            //assert
            Assert.AreEqual(expected, result);
        }