public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.AreEqual("Your application description page.", result.ViewBag.Message); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.IsNotNull(result); }
public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.That(result, Is.Not.Null); }
public void About() { // Arrange var controller = new HomeController(); // Act var result = controller.About() as ViewResult; // Assert Assert.AreEqual("An online music store is an online business which sells audio files, usually sound recordings of music songs, in which the user pays on a per-song or subscription basis. It may be differentiated from music streaming services in that the online music store sells the purchaser the actual digital music file, while streaming services offer partial or full listening without the actually owning the source file. However, online music stores generally offer partial streaming previews, with some songs even available for full length listening.", result.ViewBag.Message); }