public void Get_WhenCalled_ReturnsOkResult() { // Act var okResult = _controller.Get(); // Assert Assert.IsType <OkObjectResult>(okResult); }
public void Get() { // Arrange UserInfoController controller = new UserInfoController(); // Act //IEnumerable<string> result = controller.Get(); List <Object> Object_List = controller.Get(); // Assert //Assert.IsNotNull(result); //Assert.AreEqual(2, result.Count()); //Assert.AreEqual("value1", result.ElementAt(0)); //Assert.AreEqual("value2", result.ElementAt(1)); }