Ejemplo n.º 1
0
        public void TestFibo()
        {
            //Arrange
            string         res  = "";
            MathController ctrl = new MathController();

            ctrl.Request       = new HttpRequestMessage();
            ctrl.Configuration = new HttpConfiguration();
            //Act
            HttpResponseMessage httpResponseMessage = ctrl.Fibonacci(10);

            httpResponseMessage.TryGetContentValue <string>(out res);
            //Assert
            Assert.AreEqual("55", res);
        }