Exemple #1
0
    public void ShowMeTheCode_CallMethod_Ok()
    {
        var actual   = (githubController.Get().Result as OkObjectResult).Value;
        var expected = "https://github.com/sfspacov/unitAndIntegrationTest/";

        Assert.Equal(expected, actual);
    }
Exemple #2
0
        public void GetActionTest()
        {
            var result = _githubController.Get();

            Assert.IsType <OkObjectResult>(result);
        }