public void SumaTestSetUp() { _service = new List <SumaService>() { new SumaService() }; _controller = new SumaController(_service); }
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); }
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); }