Exemple #1
0
 public void DevCornerTest()
 {
     Assert.Equal("Welcome to Wolf Games' dev corner.", HomeControllerMessages.DevCorner());
 }
Exemple #2
0
 public void ThankYouTest()
 {
     Assert.Equal("Thank you from all of us at Wolf Games.", HomeControllerMessages.ThankYou());
 }
Exemple #3
0
 public void ErrorTest()
 {
     Assert.Equal("~/Views/Shared/Error.cshtml", HomeControllerMessages.Error());
 }
Exemple #4
0
 public void ContactTest()
 {
     Assert.Equal("We love to hear from you.", HomeControllerMessages.Contact());
 }
Exemple #5
0
 public void AboutTest()
 {
     Assert.Equal("About Wolf Games.", HomeControllerMessages.About());
 }
Exemple #6
0
 public void ContactReturnsViewResultWithAboutMessage()
 {
     Result = Controller.Contact() as ViewResult;
     Assert.IsType <ViewResult>(Result);
     Assert.Equal(HomeControllerMessages.Contact(), Result.ViewData["Message"]);
 }