示例#1
0
        public void DefaultNoMerge_HabitatHome_CorrectID()
        {
            // Arrange
            using (var db = Dbs.DefaultNoMerge())
            {
                // Act
                var home = db.GetItem(Ids.Habitat);

                // Assert
                Assert.IsTrue(home.ID == new Sitecore.Data.ID(Ids.Habitat));
            }
        }
示例#2
0
        public void DefaultNoMerge_HabitatHome_CorrectTitle()
        {
            // Arrange
            using (var db = Dbs.DefaultNoMerge())
            {
                // Act
                var home = db.GetItem(Ids.Habitat);

                // Assert
                Assert.IsTrue(home["Title"] == "About Habitat");
            }
        }
示例#3
0
        public void DefaultNoMerge_HabitatHome_NotNull()
        {
            // Arrange
            using (var db = Dbs.DefaultNoMerge())
            {
                // Act
                var home = db.GetItem(Ids.Habitat);

                // Assert
                Assert.IsNotNull(home);
            }
        }