﻿using System.Web.Mvc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using STEM_Db;
using STEM_Db.Controllers;

namespace STEM_Db.Tests.Controllers
{
    [TestClass]
    public class HomeControllerTest
    {
        [TestMethod]
        public void Index()
        {
            // Arrange
            HomeController controller = new HomeController();

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("Home Page", result.ViewBag.Title);
        }
    }
}
