public void Index() { //Arrange HelloWorldController controller = new HelloWorldController(); // Act string result = controller.Get(); //Assert Assert.IsNotNull(result); Assert.AreEqual("Hello World",result); }
public void GetReturnsProduct() { // Arrange var controller = new HelloWorldController(); controller.Request = new HttpRequestMessage(); controller.Configuration = new HttpConfiguration(); // Act var response = controller.Get(); // Assert // Assert.IsTrue(true); Assert.AreEqual("Hello ", response); }