public void AddTestCase() { double leftOp = 2; double rightOp = 2; var testData = new { operation = "add", arguments = new List <double> { leftOp, rightOp }, result = leftOp + rightOp }; var controller = new CalcController(); var result = controller.GetAdd(leftOp, rightOp); Assert.AreEqual(result.ToString(), testData.ToString()); }