Exemple #1
0
        public void Default_HabitatHome_CorrectTitle()
        {
            // Arrange
            using (var db = Dbs.Default())
            {
                // Act
                var home = db.GetItem(Ids.Habitat);

                // Assert
                Assert.IsTrue(home["Title"] == "About Habitat");
            }
        }
Exemple #2
0
        public void Default_HabitatHomeTemplate_NotNull()
        {
            // Arrange
            using (var db = Dbs.Default())
            {
                // Act
                var homeTemplate = db.GetItem(Ids.HabitatTemplate);

                // Assert
                Assert.IsNotNull(homeTemplate);
            }
        }
Exemple #3
0
        public void Default_HabitatHome_CorrectID()
        {
            // Arrange
            using (var db = Dbs.Default())
            {
                // Act
                var home = db.GetItem(Ids.Habitat);

                // Assert
                Assert.IsTrue(home.ID == new Sitecore.Data.ID(Ids.Habitat));
            }
        }