public void IsEven_When_Even_Returns_True() { // Act var val = 22; // Arrange var result = _helper.IsEven(val); // Assert Assert.IsTrue(result); }
public JsonResult GetResult(int value) { var result = _calculator.IsEven(value); return(Json(new { result = result.ToString() })); }