Esempio n. 1
0
        public void GetCurrentContentTitle_GetsTitle()
        {
            String expected = MvcTemplate.Resources.Content.Titles.AdministrationAccountsDetails;
            String actual   = ResourceProvider.GetCurrentContentTitle();

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void GetCurrentContentTitle_GetsTitleWithoutArea()
        {
            routeValues["controller"] = "Profile";
            routeValues["action"]     = "Delete";
            routeValues["area"]       = null;

            String expected = MvcTemplate.Resources.Content.Titles.ProfileDelete;
            String actual   = ResourceProvider.GetCurrentContentTitle();

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void GetCurrentContentTitle_OnContentNotFoundReturnsNull()
        {
            routeValues["area"] = null;

            Assert.IsNull(ResourceProvider.GetCurrentContentTitle());
        }