public void GetOddSequence() { HomeController controller = new HomeController(); string expectedResult = "1,3,5"; string actualResult = string.Empty; actualResult = controller.GetOddSequence(5); Assert.AreEqual(expectedResult, actualResult); }
public void GetConditionalSequence() { HomeController controller = new HomeController(); string expectedResult = "1,2,C,4,E"; string actualResult = string.Empty; actualResult = controller.GetConditionalSequence(5); Assert.AreEqual(expectedResult, actualResult); }
public void Contact() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Contact() as ViewResult; // Assert Assert.IsNotNull(result); }
public void Index() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.AreEqual("Modify this template to jump-start your ASP.NET MVC application.", result.ViewBag.Message); }