Unit testing a controller in ASP.NET MVC 3
- by Abdullah Al- Mansur
public Double Invert(Double? id)
{
return (Double)(id / id);
}
I have done this for this test but fails please can anyone help with this cos just started with unit testing
/* HINT: Remember that you are passing Invert an *integer* so
* the value of 1 / input is calculated using integer arithmetic.
* */
//Arrange
var controller = new…