Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class given_an_instance_of_calculation_controller
public void assert_that_given_two_numbers_the_result_returned_is_the_correct_sum()
// arrange
var controller = new CalculationController();
var viewModel = new TwoNumberViewModel
FirstNumber = 10,
SecondNumber = 20
// act
var result = controller.Add(viewModel) as OkObjectResult;
// assert
Assert.Equal("30", result.Value.ToString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.