mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
Initial Commit
This commit is contained in:
commit
74ac3bb599
106 changed files with 118079 additions and 0 deletions
42
NzbDrone.Web.Test/Controllers/HomeControllerTest.cs
Normal file
42
NzbDrone.Web.Test/Controllers/HomeControllerTest.cs
Normal file
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.Mvc;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using NzbDrone.Web;
|
||||
using NzbDrone.Web.Controllers;
|
||||
|
||||
namespace NzbDrone.Web.Tests.Controllers
|
||||
{
|
||||
[TestClass]
|
||||
public class HomeControllerTest
|
||||
{
|
||||
[TestMethod]
|
||||
public void Index()
|
||||
{
|
||||
// Arrange
|
||||
HomeController controller = new HomeController();
|
||||
|
||||
// Act
|
||||
ViewResult result = controller.Index() as ViewResult;
|
||||
|
||||
// Assert
|
||||
ViewDataDictionary viewData = result.ViewData;
|
||||
Assert.AreEqual("Welcome to ASP.NET MVC!", viewData["Message"]);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void About()
|
||||
{
|
||||
// Arrange
|
||||
HomeController controller = new HomeController();
|
||||
|
||||
// Act
|
||||
ViewResult result = controller.About() as ViewResult;
|
||||
|
||||
// Assert
|
||||
Assert.IsNotNull(result);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue