Hi,
I have a problem with this code. I don't know how to compare two ActionResult. I`m testing, I know that this program runs, but i don`t know hot to test it.
Here is the code:
public void CalculadoraControllerConstructorTest()
{
CalculadoraController target = new CalculadoraController();
//Assert.Inconclusive("TODO: Implement code to verify target");
}
public void CalculaTest()
{
CalculadoraController target = new CalculadoraController();
string tipo = "Sumar";
int numero = 2;
int numero1 = 2;
ActionResult actual = target.Calcula(tipo, numero, numero1);
int expected = 4;
Assert.Equals(expected, (actual));
}
In this case i`m comparing and int with an ActionResult.